willsegatto Posted April 24, 2019 Share Posted April 24, 2019 My shop simply won't send emails. Via PHP Mail() I get a "check your configuration" error. Via SMTP it says the email has been sent but it never arrives. I saw in some forums the "From" field could be empty or outside my domain or the params (?) field should be empty. Where is the php files used for sending emails located so I can check those? I simply envy you guys that install Prestashop and can work with the default functionalities without problems. I am having a tough time. Best regards, Will Link to comment Share on other sites More sharing options...
willsegatto Posted April 24, 2019 Author Share Posted April 24, 2019 i just discovered that if I change the coding of this file, PHP Mail() works. Very frustrating though. Locate this method in file <Prestashop>/classes/Mail.php, line 687: public static function sendMailTest Then in: $message ->setFrom('[email protected]') /** ->setFrom($from) <<<<<<<<<<<<<<<<<< */ ->setTo($to) ->setSubject($subject) ->setBody($content); And it works. Have to test on the rest of the configuration. Link to comment Share on other sites More sharing options...
willsegatto Posted April 24, 2019 Author Share Posted April 24, 2019 (edited) I also updated the shop configuration in the SQL Database: UPDATE `juiceshop01`.`ps_configuration` SET `value` = '[email protected]' WHERE `ps_configuration`.`id_configuration` = 232; Now order emails are arriving. This can also be done in this very well hidden and poorly documented configuration section: Edited April 24, 2019 by willsegatto (see edit history) 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