BGBK Posted January 15, 2010 Share Posted January 15, 2010 Hi!I recently discovered that no outgoing e-mails from PS are sent. Not password recovery, not admin order Conf., not contact form, not e-mail alert 2.2... etc. Work very well up until "just now".I have´nt installed any strange modules or edited any PHP-files (other than standard configuration)Im using PS 1.2.5.Is this a issue for my ISP or can it be PS itself?Some one had the same problem?BR/Joel Link to comment Share on other sites More sharing options...
tomerg3 Posted January 15, 2010 Share Posted January 15, 2010 There are many threads about this issue, next time try to do a search....2 things you should try:In /tools/swift/Swift/Message.php line #79Change $this->setFrom(""); To $this->setFrom("[email protected]"); And in /tools/swift/Swift.php after line 370 (if (!($has_reply_to = $message->getReplyTo())) $message->setReplyTo($from);)add the following code: if (!$has_reply_to[0]) $message->setReplyTo($from->getAddress()); Now try sending a message, if it still doesn't work, try the following:In /tools/swift/Swift/Plugin/MailSend.php line # 159 add $params = ""; Link to comment Share on other sites More sharing options...
BGBK Posted January 17, 2010 Author Share Posted January 17, 2010 Excellent, thanx! I really search, but didn't find anything like that you suggested :-) It all works fine after update, incl. the "param"BR/Joel Link to comment Share on other sites More sharing options...
tomerg3 Posted January 18, 2010 Share Posted January 18, 2010 I'm glad it works, but I copied that from another thread I posted on the forum I may try to make 1 central post for all email related issues, so it will be easier to find. Link to comment Share on other sites More sharing options...
BGBK Posted January 21, 2010 Author Share Posted January 21, 2010 Hi again,Now suddenly all emails don't work again. VERY strange as I haven´t change anything...HistoryLast time (before updating the code above) I uninstalled all modules backing up to the date when it DID work. After that I updated the code and installed one module at the time. After each installation, I tested the email function, AND after installing our chosen Modules, the emails still worked.After that, Ive only changed text updates to improve SEO.Does anyone have a clue why all email suddenly went dead?BR/Joel Link to comment Share on other sites More sharing options...
BGBK Posted January 22, 2010 Author Share Posted January 22, 2010 A question along the way:- Does PS use the SMTP-settings I set up under Preference/Email for all outgoing emails, or just for the Contact-form?If not, Is there a way to implement a setup for all outgoing SMTP e-mails? Perhaps via a Module?Sorry to say, my own limits are to XHMTL, graphics and such. Very little PHP ;-)It seems email problems are common, and are to us (anyway) very important for confirmations etc etc. A vital part in our business!I could let a PS-admin into the back-end for checking all settings if neccesary. Will donate if resolved! :-)Ony one?BR/Joel Link to comment Share on other sites More sharing options...
CyberLolita Posted January 26, 2010 Share Posted January 26, 2010 Hi, I am having email problems too. I've followed the instructions above and even tried my host's smtp settings and contacted my host, to no avail. Please help!! I hoping to open my store 01/02/10 :-S Link to comment Share on other sites More sharing options...
tomerg3 Posted January 26, 2010 Share Posted January 26, 2010 See if the language files for the mail are still there in /mails/xx/That is the only other thing that I can think of without investigating it deeper on your server.Email or PM me if you still have issues and want to hire me to take a closer look and resolve it. Link to comment Share on other sites More sharing options...
BGBK Posted January 26, 2010 Author Share Posted January 26, 2010 Thanx tomerg3Yepp, all emails are in place and with a totally fresh installWell, since my last post Ive deleted all files (on the FTP), including Db. Then downloaded 1.2.5 again from PS and installed it. Got "green check" on all install settings BUT when I clicked "Send test email" it didn't work (no errors though). I skipped that and clicked next anyway. All went well after that.Strange enough, the first install did work, and then it did work again after updating with the code above.Now, with the fresh install I've updated the code again, and it still don't work.We'll start the business WITHOUT sending automatic emails through the site. I'm sure Ill contact You for hire later on - right now its to much time getting started. You know ;-)Best/J Link to comment Share on other sites More sharing options...
CyberLolita Posted January 26, 2010 Share Posted January 26, 2010 all language files are there. Anything else you can think of? Link to comment Share on other sites More sharing options...
tomerg3 Posted January 26, 2010 Share Posted January 26, 2010 all language files are there. Anything else you can think of? Can you try creating a simple php file and use the basic mail() command to see if you can send plain emails <? mail("[email protected]","test email","test email"); ?> MAke sure you check the spam folder just in case it was picked up as spam. Link to comment Share on other sites More sharing options...
CyberLolita Posted January 26, 2010 Share Posted January 26, 2010 Done - got a blank page from contact form & retrieve password Link to comment Share on other sites More sharing options...
CyberLolita Posted January 26, 2010 Share Posted January 26, 2010 I've added an information link to explain that the contact and password retrieval forms aren't working due to an errorand other bits I think are needed. It will have to do until this problem gets solved :long: Link to comment Share on other sites More sharing options...
bvsmohan Posted January 27, 2010 Share Posted January 27, 2010 hii also have same problem, and i am new to PHP and PS, i dont know how to solve the problem, i posted a question in forum but still problem persists. let me explain my problem.i cant use PHP mail function because my hosting company insists in using authentication when sending mails, so i have to choose SMTP.then i configured SMTP params provided by ISP but mail is not working. And thinking that this could be problem with ISP, i contacted customer support team of my ISP and they said everything ok with them and provided me with a sample script which uses SMTP authentication to send emails, well that script working fine, so there is no problem with ISP. And i observed one thing when i set proper values for params and try to send mail, its not giving any error or success message, the page is redirecting to homepage, i m not sure why it is like that.i think this might be problem with 'swift mailer' library, it may need some tweaking, but i dont know how to do it.here is the link to my post on this issue http://www.prestashop.com/forums/viewthread/41747/help_configuration___use/unable_to_send_mails_when_using_smtp_method pls help methanks Link to comment Share on other sites More sharing options...
tomerg3 Posted January 27, 2010 Share Posted January 27, 2010 Done - got a blank page from contact form & retrieve password Did you add the code I wrote above to those files?I meant for you to create a new php with it, not add it to an existing file. Link to comment Share on other sites More sharing options...
gianvi Posted February 14, 2010 Share Posted February 14, 2010 Just a question :this is only for message or mails too ?i have this scenario :i made an orderPS 1.2.5 send correctly the email to customerPS don't send the order mail to merchantI can enter into the order and send a message to customer i'm in PHP mail system, in SMTP mode doesn't work anything and the order is not finished.seen that emails are the basic of an ecommerce, what's up ?? Link to comment Share on other sites More sharing options...
tomerg3 Posted February 14, 2010 Share Posted February 14, 2010 What ISP do you use?Did you look at the fixing email problems page on my site? Link to comment Share on other sites More sharing options...
gianvi Posted February 14, 2010 Share Posted February 14, 2010 yes, i test it but no wayBut i solved 10 minutes ago.It was missing a folder language IT in mailalert/mailstks a lot Link to comment Share on other sites More sharing options...
liube Posted May 9, 2010 Share Posted May 9, 2010 To all, I have a very strange situation. All emails are received successfully only in one case: if the addressee of the email is in the format anyname@domain_on_which_runs_my_prestashop.comThe above provided solution (source code modification for swift) did not help and I can add that all language files are there in the mails/xx folders as well.Here is my current situation,- emails sent from my contact form arrive if the email address mentioned in PS Back Office > Employees > Contacts is an email in the format anyname@domain_on_which_runs_my_prestashop.com- emails sent from my contact form do not arrive to any email address in other format (gmail, yahoo, etc.)- emails with confirmation of order or any change of status do not arrive to customers registered on the website APART if the customer registered has an address in the format anyname@domain_on_which_runs_my_prestashop.com (that is to say only ME)- emails with new password (after password reset) do not arrive as well APART if the customer registered has an address in the format anyname@domain_on_which_runs_my_prestashop.com (that is to say only ME)- I am not using SMTP configuration in PS Back Office > Preferences > Email. I am using PHP mail ()…- and it seems it works: as per your proposal on another Prestashop forum thread (http://www.prestashop.com/forums/viewthread/40914/P0/configuring___using_prestashop/total_stop_of_all_ps_emails_ps_or_isp) I have created a basic PHP file and run it on my server:<?mail(“[email protected]”,“test email”,“test email”);?>Emails have been sent successfully to all kind of email addresses (not only to emails in the format: anyname@domain_on_which_runs_my_prestashop.com)I will be very very very grateful for help on this situation!!!!Thanks, Liube Link to comment Share on other sites More sharing options...
BGBK Posted May 10, 2010 Author Share Posted May 10, 2010 If running your site at One.com, please view this post for the correct SMTP e-mail settingshttp://www.prestashop.com/forums/viewthread/42053/P15/#187644BR/Joel Link to comment Share on other sites More sharing options...
liube Posted May 10, 2010 Share Posted May 10, 2010 @BGBK, I've read your thread... but unfortunately I am not at one.com. Do you recommend this hosting? By the way, did anyone try to use GMAIL SMTP instead of the one.com in Prestashop config and did it work? It doesn't work for me... I tried also to use the Mailsend.php file published on the Swedish forum mentioned in your link... but it did not work for me as well Any other suggestions? I am loosing my customers trust every day due to this issue 2 Link to comment Share on other sites More sharing options...
stealthmktg Posted May 10, 2010 Share Posted May 10, 2010 And i observed one thing when i set proper values for params and try to send mail, its not giving any error or success message, the page is redirecting to homepage, i m not sure why it is like that. Has anyone found a solution for this?????!!!! Link to comment Share on other sites More sharing options...
stealthmktg Posted May 10, 2010 Share Posted May 10, 2010 There are many threads about this issue, next time try to do a search....2 things you should try:In /tools/swift/Swift/Message.php line #79Change$this->setFrom(""); To $this->setFrom("[email protected]"); And in /tools/swift/Swift.php after line 370 (if (!($has_reply_to = $message->getReplyTo())) $message->setReplyTo($from);)add the following code: if (!$has_reply_to[0]) $message->setReplyTo($from->getAddress()); Now try sending a message, if it still doesn't work, try the following:In /tools/swift/Swift/Plugin/MailSend.php line # 159 add $params = ""; I have the same problem BGBK describes trying to get SMTP working, since I upgraded to 1.2.5. SMTP was working fine before that, but now I've been forced to use php and am experiencing a ~50% delivery rate. I have tried these instructions but with no luck, no matter what SMTP settings I try, when I test sending a message through the back office I am redirected to the shop home page and the mail is never sent. I also noticed whenever I go back to BO> Preferences > Email - the SMTP password is always blank. Is that normal behavior or should I see bullets like when initially typing them in / before saving?P.S. Tomerg, I am using your Tax modification Link to comment Share on other sites More sharing options...
stealthmktg Posted May 11, 2010 Share Posted May 11, 2010 It appears I have finally gotten this fixed (and can now use SMTP again) by renaming the 1.2.5 version of the tools/swift folder and replacing it with the version from prestashop 1.1Only time will tell... Link to comment Share on other sites More sharing options...
chrilisa Posted May 30, 2010 Share Posted May 30, 2010 There are many threads about this issue, next time try to do a search....2 things you should try:In /tools/swift/Swift/Message.php line #79Change$this->setFrom(""); To $this->setFrom("[email protected]"); And in /tools/swift/Swift.php after line 370 (if (!($has_reply_to = $message->getReplyTo())) $message->setReplyTo($from);)add the following code: if (!$has_reply_to[0]) $message->setReplyTo($from->getAddress()); Now try sending a message, if it still doesn't work, try the following:In /tools/swift/Swift/Plugin/MailSend.php line # 159 add $params = ""; hi,i done what you said ,but i dont work , Link to comment Share on other sites More sharing options...
dodin Posted December 11, 2010 Share Posted December 11, 2010 There are many threads about this issue, next time try to do a search....2 things you should try:In /tools/swift/Swift/Message.php line #79Change$this->setFrom(""); To $this->setFrom("[email protected]"); And in /tools/swift/Swift.php after line 370 (if (!($has_reply_to = $message->getReplyTo())) $message->setReplyTo($from);)add the following code: if (!$has_reply_to[0]) $message->setReplyTo($from->getAddress()); Now try sending a message, if it still doesn't work, try the following:In /tools/swift/Swift/Plugin/MailSend.php line # 159 add $params = ""; hi,i done what you said ,but i dont work , it dont work at all. I have tried everything. I dont know what to do again. 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