mozack Posted October 27, 2009 Share Posted October 27, 2009 Hi,I receive messages from customers on order page (backoffice). When i try to respond and send to customer i receive the error bellow:Warning: mail() [function.mail]: Bad parameters to mail() function, mail not sent. in /root/html/bikinishopbrasil/tools/swift/Swift/Plugin/MailSend.php on line 160Prestashop version 1.2.5Can someone help me?Thanks Link to comment Share on other sites More sharing options...
Nancy Hiwatari Posted October 27, 2009 Share Posted October 27, 2009 the problem seems to have a reference to the configuration of your phpini , be sure your default port is 25 and check the configuration of sending e mails at your server (for example apache)have nice day Link to comment Share on other sites More sharing options...
mozack Posted October 27, 2009 Author Share Posted October 27, 2009 Hi, Thanks!It seems to work. All e-mails are working good without smtp configuration just with php mail.I dont know what can be that problemThanksBest Regards Link to comment Share on other sites More sharing options...
Nancy Hiwatari Posted October 27, 2009 Share Posted October 27, 2009 Ahh the problem maybe was that smtp and phpmail had a truble because both were using the same configuration and port , but i am happy you have fixed your problemkisses n.n Link to comment Share on other sites More sharing options...
kuraga Posted November 17, 2009 Share Posted November 17, 2009 in my case it was actually a language validation error. You see, Validate class does not recognize html special characters as tildes, quotes, etc. i solved by adding this in classes/Mail.php after line 29:/*CHANGE*-decode html special characters*/ $fromName = htmlspecialchars_decode($fromName,ENT_QUOTES,'UTF-8'); $toName = htmlspecialchars_decode($toName,ENT_QUOTES,'UTF-8');/*END OF CHANGE*/ Link to comment Share on other sites More sharing options...
mozack Posted November 17, 2009 Author Share Posted November 17, 2009 Hi, thanks for your reply, that code returns me one error.Thanks anyway Link to comment Share on other sites More sharing options...
kuraga Posted November 18, 2009 Share Posted November 18, 2009 really?I'm sure I copied it right from the code. What's the error? maybe I can still help PS: did you paste it before the "if" where it checks the message? cause another thing you can do is print all the validations on that "if" sentence and see wich one is returning false. Link to comment Share on other sites More sharing options...
luisramosb Posted May 20, 2010 Share Posted May 20, 2010 This worked for me:I went to BO->Tools->Translation-> Back office translations -> clicked on flag -> searched within the AdminOrder group this “New message regarding your order”and I found out the spanish translation had an accent on the phrase. It did not like any special language chars on the Subject of the email such as ñ or áéíóú. Saludos Link to comment Share on other sites More sharing options...
Recommended Posts