Skip to content

Commit

Permalink
Fix send email from office365
Browse files Browse the repository at this point in the history
When email is used instead of from name, office 365 blocks the sending and returns 5.2.0 exeption https://docs.microsoft.com/en-us/exchange/troubleshoot/email-messages/mapiexceptionnotfound-ndr
  • Loading branch information
hryvinskyi committed Jul 22, 2019
1 parent e87900c commit 3ec18a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Block/Adminhtml/EmailTest.php
Expand Up @@ -328,7 +328,7 @@ protected function validateMagentoEmailSetting()
$this->_email
->setTemplateVars(['hash' => $this->hash])
->send(
['email' => $this->fromAddress, 'name' => $this->fromAddress],
['email' => $this->fromAddress, 'name' => 'Test from MagePal SMTP'],
['email' => $this->toAddress, 'name' => $this->toAddress]
);
} catch (Exception $e) {
Expand Down

0 comments on commit 3ec18a8

Please sign in to comment.