chenh Posted September 22, 2013 Share Posted September 22, 2013 Hi! I have a problem right now, all the automated mail send from my website is going directly to the spam folder. I think I found a solution : http://www.transio.com/content/how-pass-spam-filters-php-mail But how do I modify the php mail function in prestashop? I have version 1.5.3.1 Link to comment Share on other sites More sharing options...
vekia Posted September 22, 2013 Share Posted September 22, 2013 prestashop use SWIFT mailer and it is much better than code you proposed in link above, check file: classes/Mail.php Link to comment Share on other sites More sharing options...
chenh Posted September 22, 2013 Author Share Posted September 22, 2013 prestashop use SWIFT mailer and it is much better than code you proposed in link above, check file: classes/Mail.php Hi Vekia, Are you sure its better? Because all my automated mails are going directly to the client's spam folder. How can I fix this? Thanks in advance! Link to comment Share on other sites More sharing options...
El Patron Posted September 22, 2013 Share Posted September 22, 2013 wouldn't it be 'much' easier to just use your domains email name? that is what the problem is, i.e. trying to use a hotmail from your ps... you would be better off using your gmail and setting the mail servers for gmail pop 3 Link to comment Share on other sites More sharing options...
vekia Posted September 22, 2013 Share Posted September 22, 2013 yea El Patron has got right, your messages are treated as a SPAM because of SPF, SPF it's a "Sender Policy Framework" - it is an email validation system designed to prevent email spam by detecting email spoofing (sending emails from servers not related to email domain) Link to comment Share on other sites More sharing options...
chenh Posted September 22, 2013 Author Share Posted September 22, 2013 wouldn't it be 'much' easier to just use your domains email name? that is what the problem is, i.e. trying to use a hotmail from your ps... you would be better off using your gmail and setting the mail servers for gmail pop 3 Hi El Patron, This might be a foolish question, but how do I use my domain mail name? I'm not really sure if I'm understanding. A week ago I configured my own SMTP server in the email options using my gmail account but yet the emails are still going to the client's spam folder. So I changed it back to PHP mail were the same problem still occurs. About Vekia's reply, I asked for help from my server host and they told me they modify the SPF records and they are not sure why my emails are still going to the spam folder. By the way, I use VPS plan, is it relevant to this issue? Thanks in advance! Link to comment Share on other sites More sharing options...
El Patron Posted September 23, 2013 Share Posted September 23, 2013 using your own domain as mail, this is done by setting up your mail server on your hosting account for that domain...you basically end up just adding the email address(es) you want to do. You do not need to use SMTP, normal php mail works fine. for gmail pop 3, it's all about setting up the MX records... start with this set up and see if it differs from what you have done http://support.google.com/a/bin/answer.py?hl=en&answer=33352&topic=2683820&ctx=topic Link to comment Share on other sites More sharing options...
chenh Posted September 23, 2013 Author Share Posted September 23, 2013 using your own domain as mail, this is done by setting up your mail server on your hosting account for that domain...you basically end up just adding the email address(es) you want to do. You do not need to use SMTP, normal php mail works fine. for gmail pop 3, it's all about setting up the MX records... start with this set up and see if it differs from what you have done http://support.google.com/a/bin/answer.py?hl=en&answer=33352&topic=2683820&ctx=topic Hi El Patron! Okay, I'm going to use the php mail function and set the mx records in the whm and then tell you the result. Thanks! Link to comment Share on other sites More sharing options...
chenh Posted September 23, 2013 Author Share Posted September 23, 2013 Hi, So all I did was add a MX record ASPMX.L.GOOGLE.COM with 10 of priority. Is that it? Thanks! Link to comment Share on other sites More sharing options...
El Patron Posted September 24, 2013 Share Posted September 24, 2013 Hi, So all I did was add a MX record ASPMX.L.GOOGLE.COM with 10 of priority. Is that it? Thanks! Please let us know if this resolves your 'non-Prestashop' email questions. Link to comment Share on other sites More sharing options...
chenh Posted September 27, 2013 Author Share Posted September 27, 2013 Please let us know if this resolves your 'non-Prestashop' email questions. Hi El Patron, I can confirm you that your method resolve my issue. Thank you so much! Link to comment Share on other sites More sharing options...
ncekov Posted August 20, 2015 Share Posted August 20, 2015 Hi , To do not come in spam folder is have to be add new spf record for domain . This is have to be on domain control panel . Ask your Domain Resaler for information or you can find all necessary information on wikipedia. This will resolve your problem with emails. Link to comment Share on other sites More sharing options...
Recommended Posts