Jump to content

Problems sending transaction emails in 1.7.5.0


duckling

Recommended Posts

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

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 by duckling (see edit history)
Link to comment
Share on other sites

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

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:
image
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...