Quelet Posted March 5, 2013 Share Posted March 5, 2013 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 More sharing options...
vekia Posted March 5, 2013 Share Posted March 5, 2013 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 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 More sharing options...
Quelet Posted March 5, 2013 Author Share Posted March 5, 2013 Thanks. With SMTP work's but I need the mail php. I've installed the payment with credit card but the customer don't receive any mail confirming the buy purchase. I assumed it was for the SMTP. 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