Jump to content

PS 1.6 "Send to a friend" email not valid


Recommended Posts

I have a bug in my PrestaShop v1.6.0.14 store that I would like some help with fixing. It seems to be a common bug, but I can't find the issue myself.

 

When i go to "Send to a friend" it says "Your e-mail could not be sent. Please check the e-mail address and try again."

 

Some discussions on the PS forum are here, but I haven't been able to resolve it lookign through these:

https://www.prestashop.com/forums/topic/321515-send-to-friend-doesnt-work/ https://www.prestashop.com/forums/topic/315533-solved-module-send-to-a-friend-does-not-work/

 

Other email types seem to be working fine.

 

Any help would be appreciated.

 

Kind regards.

Link to comment
Share on other sites

  • 6 months later...

I have a bug in my PrestaShop v1.6.0.14 store that I would like some help with fixing. It seems to be a common bug, but I can't find the issue myself.

 

When i go to "Send to a friend" it says "Your e-mail could not be sent. Please check the e-mail address and try again."

 

Some discussions on the PS forum are here, but I haven't been able to resolve it lookign through these:

https://www.prestashop.com/forums/topic/321515-send-to-friend-doesnt-work/ https://www.prestashop.com/forums/topic/315533-solved-module-send-to-a-friend-does-not-work/

 

Other email types seem to be working fine.

 

Any help would be appreciated.

 

Kind regards.

SneakyPete92 - I found the following solution on this forum and it worked for me.  See below:

 

Guys I had the same problem and none of the above worked for me, and I tried the following and it worked:

In /tools/swift/Swift/Message.php line #79

Change

$this->setFrom("");

To

$this->setFrom("[email protected]");
 
In /tools/swift/Swift.php after line 370
if (!($has_reply_to = $message->getReplyTo())) $message->setReplyTo($from);

Add the following code:

if (!$has_reply_to[0])

$message->setReplyTo($from->getAddress());

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...