duckling Posted January 27, 2019 Share Posted January 27, 2019 Hi! I have been trying to send transaction email from PS 1.7.5.0, but keep getting an error message "An error occurred while sending the to the customer". It happens when changing order status or trying to resend that message from the order. This is a new installation of PS. Module for email notifications is installed and configured. Shutting of the email function means that no error comes up. Have been trying PHP mail function, various SMTP server settings, but the same result all the time. Sending a test email works just fine. All templates are in place. Anyone have an idea what might cause this? Link to comment Share on other sites More sharing options...
duckling Posted January 27, 2019 Author Share Posted January 27, 2019 (edited) I can also say that originally the error was thrown as a violation of the RFC standard: Address in mailbox given [mail@] does not comply with RFC 2822, 3.6.2 Is written exactly like that in the log file in var directory. I edited the MailboxHeader.php in order to avoid a more serious error, a http 500 error. Edited January 27, 2019 by duckling (see edit history) Link to comment Share on other sites More sharing options...
tdsoft Posted January 28, 2019 Share Posted January 28, 2019 You can check error_log file to know specify message error? Link to comment Share on other sites More sharing options...
duckling Posted January 28, 2019 Author Share Posted January 28, 2019 8 hours ago, tdsoft said: You can check error_log file to know specify message error? Yes, the regular log reported the same error (RFC 2822 error) There is nothing strange about the email adress. regular letters, gmail... Link to comment Share on other sites More sharing options...
duckling Posted January 29, 2019 Author Share Posted January 29, 2019 I have learned that this is a known bug in PS this version, but I have not seen any solution. Any "quickfixes" for this, awaiting a patch? Link to comment Share on other sites More sharing options...
nercolis Posted January 30, 2019 Share Posted January 30, 2019 Hi, I was struggling with the same problem over the last days with a http 500 error . (Prestashop 1.7.5. with php 7.2) In bug report I found this message in classes/mail.php : linexxx: return $address[0] . '@' . idn_to_ascii($address[1], 0, INTL_IDNA_VARIANT_UTS46); and found a recommendation : "For INTL, latest version of PrestaShop require the extension php-intl." I asked my host to install php.intl and now it works fine Hope this is the solution for you too. Link to comment Share on other sites More sharing options...
ksaan Posted January 30, 2019 Share Posted January 30, 2019 I think the issue you have is this one: https://github.com/PrestaShop/PrestaShop/issues/11933 and here is the solution https://github.com/PrestaShop/PrestaShop/pull/11995 Link to comment Share on other sites More sharing options...
duckling Posted February 1, 2019 Author Share Posted February 1, 2019 On 1/30/2019 at 12:40 PM, ksaan said: I think the issue you have is this one: https://github.com/PrestaShop/PrestaShop/issues/11933 and here is the solution https://github.com/PrestaShop/PrestaShop/pull/11995 The solution was here indeed. The following change solved the problem and now emails are sent. Thank's for this @ksaan! I paste the solution here: @gorkij77 I finally cracked it. This is the PR that broke e-mail sending for some of us: Remove deprecated functions #11579 Reverting the change in classes/Mail.php makes e-mail sending work again: Give it a try. It worked for me. It seems that some servers are still running ICU<4.6. And there's where the problem is: Support for UTS 46 Unicode IDNA Compatibility Processing was added in ICU 4.6 and released on 2010-12-02. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now