Jump to content

Error Sending Mail Php


Quelet

Recommended Posts

Hello!

First of all sorry for my bad english. I've problems when I try to send an email from my shop.

I get t'his message:

"Sending failed using mail() as PHP's default mail() function returned boolean FALSE."

I'm on shared hosting and I've the mail function disabled.

I tried these two solutions:

 

http://www.prestasho...14#entry1058914

 

 

http://www.webbax.ch...hez-infomaniak/

 

 

but did not work :(

 

My hosting company tell me that I 've to change this in my shop :

Código de ejemplo

//--- Para rellenar: ----------------

$servidor_mail = "30.0.0.XX"; //servidor de correo

$user_mail = "usuario"; //dirección usada para enviar los mensajes

$pwd_mail = "contraseña"; //contraseña del usuario

$from_name = &quo t;Nombre del remitente"; //nombre del remitente

$from_email = "[email protected]"; //dirección que aparecerá como remitente

//----------------------------

-------

 

 

//Envío del mensaje.

require("class.phpmailer.php");

$mail = new phpmailer();

$mail->IsSMTP();

$mail->Host = $servidor_mail;

$mail->Timeout = 30;

$mail->SMTPAuth = true;

$mail->Username = $user_mail;

$mail->Password = $pwd_mail;

$mail->IsHTML(false);

$mail->From = $from_email;

$mail->FromName = $from_name;

$mail->ClearAddresses();

$mail->AddAddress($recipient);

$mail->Subject = $subject;

$mail->Body = $body;

 

if(!$mail->Send())

{

echo "Error: " . $mail->ErrorInfo;

exit;

}

Puede encontrar mas información en http://phpmailer.sourceforge.net/p

but I'don't see where I can put it.

Can you help me?

Thanks

Link to comment
Share on other sites

you should setup external SMTP server for your prestashop mailer.

 

which version of prestashop you use?

if 1.5.x go to advanced parameters -> e-mail

mWqKHmI.png

 

change settings to underlined option, then you must to complete the form where you can setup external SMTP server

 

 

Btw. change the hosting, hosting without mail() function is very unprofessional in my opinion :|

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