magepal / magento2-gmail-smtp-app

Configure Magento 2 to send email using Google App, Gmail, Amazon Simple Email Service (SES), Microsoft Office365 and many other SMTP (Simple Mail Transfer Protocol) servers
https://www.magepal.com
319 stars 148 forks source link

Test Email Server Configuration - Leave blank to use Username instead #188

Open YiffyToys opened 1 year ago

YiffyToys commented 1 year ago

Instructions in settings:

Test Email Server Configuration Settings From Email Address (Leave blank to use Username instead)

When actually leaving that field blank, we get:

o/var/log/system.log <==
[2022-10-30T15:19:17.666005+00:00] main.CRITICAL: Laminas\Mail\Exception\InvalidArgumentException: The input is not a valid email address. Use the basic format local-part@hostname in magento/vendor/laminas/laminas-mail/src/Address.php:74
Stack trace:
#0 magento/vendor/laminas/laminas-mail/src/AddressList.php(236): Laminas\Mail\Address->__construct()
#1 magento/vendor/laminas/laminas-mail/src/AddressList.php(29): Laminas\Mail\AddressList->createAddress()
#2 magento/vendor/laminas/laminas-mail/src/Message.php(538): Laminas\Mail\AddressList->add()
#3 magento/vendor/laminas/laminas-mail/src/Message.php(131): Laminas\Mail\Message->updateAddressList()
#4 magento/vendor/magepal/magento2-gmailsmtpapp/Block/Adminhtml/ValidateConfig.php(300): Laminas\Mail\Message->addFrom()
#5 magento/vendor/magepal/magento2-gmailsmtpapp/Block/Adminhtml/ValidateConfig.php(214): MagePal\GmailSmtpApp\Block\Adminhtml\ValidateConfig->validateServerEmailSetting()
#6 magento/vendor/magepal/magento2-gmailsmtpapp/view/adminhtml/templates/validateConfig/result.phtml(164): MagePal\GmailSmtpApp\Block\Adminhtml\ValidateConfig->verify()
#7 magento/vendor/magento/framework/View/TemplateEngine/Php.php(71): include('/home/domains/y...')