fashionge Posted October 12, 2009 Share Posted October 12, 2009 hello,a few days do not work and email from PrestaShop, either as new user registration, nor the contact form.After some checking I discovered that my hosting requires auntetificazione smtp to send mail from your website.And now? how can I do?they have put a sample code ...but do not understand much. can you help me?I have put a sample script but I do not know how to do<?phprequire_once "Mail.php"; //INCLUDE LA LIBRERIA PEAR$from = "Sandra Sender "; //EMAIL MITTENTE$to = "Destinatario "; //EMAIL DESTINATARIO$subject = "Hi";$body = "Hi,\n\nHow are you?";$host = "localhost";$username = "admin@DOMINIO"; //SOSTITUIRE CON L'EMAIL AMMINISTRATORE$password = "PASSWORD"; //PASSWORD$headers = array ('From' => $from,'To' => $to,'Subject' => $subject);$smtp = Mail::factory('smtp',array ('host' => $host,'auth' => true,'username' => $username,'password' => $password));$mail = $smtp->send($to, $headers, $body);if (PEAR::isError($mail)) {echo(" " . $mail->getMessage() . "");elseecho("Message successfully sent!");?> Link to comment Share on other sites More sharing options...
Jonadabe Posted October 12, 2009 Share Posted October 12, 2009 You don't need to do anything complicated.Login into your admin panel.Then go to Preferences.Click on E-mail.Click on Set my own SMTP parameters. For advanced users ONLYand voilá! Set the SMTP server, user, password, encryption (maybe none), and port (maybe 25)If this solve your question please change the topic to [sOLVED]A hug from Portugal. Link to comment Share on other sites More sharing options...
fashionge Posted October 12, 2009 Author Share Posted October 12, 2009 Thank you ..! if you can help me ... tell me what I have to do .-) Link to comment Share on other sites More sharing options...
Jonadabe Posted October 12, 2009 Share Posted October 12, 2009 Well, did you tried it already? Link to comment Share on other sites More sharing options...
fashionge Posted October 12, 2009 Author Share Posted October 12, 2009 and maybe it was that simple!we had everything set like this and it worked.only now my hosting requires SMTP authentication with the credentials and that's where the problem arises. Link to comment Share on other sites More sharing options...
Jonadabe Posted October 12, 2009 Share Posted October 12, 2009 Are you using the rigth e-mail address?What error are you getting? Link to comment Share on other sites More sharing options...
fashionge Posted October 12, 2009 Author Share Posted October 12, 2009 no errors. I shows the initial web page. if you want to try is www.cmtek.ituntil a few days ago it worked, after some research I discovered that now require the hosting auntetificazione smtp. Link to comment Share on other sites More sharing options...
Jonadabe Posted October 12, 2009 Share Posted October 12, 2009 I'm sorry, but did you tried it in english version, if the same happen?I don't know, but it seems that something is missing to us. At this moment I don't know what!Check your phpinfo just in case.Sorry! :-( Link to comment Share on other sites More sharing options...
Jonadabe Posted October 15, 2009 Share Posted October 15, 2009 Hi there again,I saw another way to solve the problem in a french fórum.If you put SMTP values of your internet service provider and not your domain it could function.Try it and say something. Link to comment Share on other sites More sharing options...
Recommended Posts