Jump to content

Bug on smtp send mail solved


Recommended Posts

Hello.

 

I have a prestashop 1.5.6.0 proyect and i see a problem with the smtp option on mail configuration.

 

I try to use it because when i use php mail function the destination mail is putting in spawn folder because the from data is null, and gmail say sending by ...

 

It only append when a customer put a message in the contact form.

 

Lot of hours of test i see that the prestashop system try to send to me a mail notify the message but with the form field with the customer mail.

 

This is a big problem because all servers have the relay rules in mode to do not relay if the account mail is not in their mail list, normaly all mails are dropped.

 

I change a line in prestashop Mail.php class to solve it, now all work fine.

 

in /classes/Mail.php at line 93 i coment it like this.

 

//if (!isset($from) || !Validate::isEmail($from))

 

This maner all messages have from of the shop mail, then the server let the message to pass.

 

This is a little repair becuse alwais the from message is the same, and can't be a employed mail.

 

Please see it and make a patch for this problem.

 

Thanks.

Fco. Torregrosa.

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...