Emails does not work in Prestashop 1.5

prestashop

If you have problems sending emails in codestashop must check :

The address is correctly :
codeferences -> Contact
Employees -> Contact
Modules -> Email Alerts
Check that there are folders with files of emails in the languages ??used in codestaShop folder / Mail .
We have successfully configured images of logos configuration template.

 

If using the mail () function in php and get e test may be because the feature is not enabled on the server, we can see it going up a file in the root partition of our directory like this :


<? php
/ / The message
$ message = " Line 1 \ nline 2 \ nline 3" ;
/ / In case you Anyone las más larga sea lines of 70 character
/ / Usarse owes WordWrap ()
$ message = WordWrap ($ message , 70 );
/ / Send
mail ( ' correo@dominio.com ', ' My Headline , $ message );
? >
 

Substituting mail domain and our data . If this email reaches us we made ??some small changes in our files codestaShop :

 

The file tools \ swift \ Swift \ Plugin \ MailSend.php makes checking in ” safe mode ” does not work so it is best to remove it :

public function doMail ($ to , $ subject , $ message , $ headers , $ params ='' )
{
$ original_from = @ ini_get ( " sendmail_from ");
@ ini_set ( " sendmail_from ', $ this -> returnPath );

$ headers = $ headers -> build ();

/ / if ( ! ini_get ( " safe_mode ")) $ success = mail ( $ to , $ subject , $ message , $ headers , $ params );
/ / Else
$ success = mail ( $ to , $ subject , $ message , $ headers );
if ( ! $ success )
{
@ ini_set ( " sendmail_from " $ original_from );
throw new Swift_ConnectionException ( " Sending failed using mail ( ) as PHP 's default mail ( ) function Returned boolean FALSE . ");
}
@ ini_set ( " sendmail_from " $ original_from );
}
If we work with this yet we file tools \ swift \ Swift \ Message.php and in line setFrom put our domain:

$ this -> setFrom ( " Domino ");If this still does not work with the file tools \ swift \ Swift \ Swift.php look for the line :


if ( ! ($ has_reply_to = $ message -> getReplyTo () ) ) $ message -> setReplyTo ($ from) ;

And right behind add the line:


if ( ! $ has_reply_to [0] ) $ message -> setReplyTo ($ from- > getAddress () );
Yet this should work.

Llamar a Doowebs Teléfono de Doowebs 653836347