E-mail notifications for placed orders

This is really weird now. Did several tests using yahoo and gmail - most of my customers will have e-mail addresses at these 2 services.



For yahoo, everything is simple, all e-mails came through, but for gmail some make it, some never arrive. The weird thing is that this does not follow a certain sequence - I have CS-CART 2.1.3 - and I did 5 orders in a row using the same product, the same account, the same shipping, everything the same.

2 e-mails out of 5 made it.

What could be causing this?



I checked the checkboxes from the order status 10 times so far, everything is checked correctly.

OK, I found the problem, but now I have a bigger one.

It seems that some of the e-mails are marked as SPAM, while others work OK.

It’s not from the hosting because I have a dedicated server, and there are only 3-4 other websites on this server.



Any idea why gmail marks some of the messages as spam?

What method are you using to send mail?



SMTP

PHPmailer

sendmail

[quote name=‘S-Combs’]What method are you using to send mail?



SMTP

PHPmailer

sendmail[/QUOTE]



Thank you for your reply.

I am using PHPmailer.

Your sending options are very limited with PHPmail and sendmail (worse).



Some tweaks can be made to its config file to change the headers it sends but it could still be flagging some new gmail spam rules. I haven’t heard of anyone else having a problem with them though. A couple years ago nobody could send to Hotmail accounts from PHPmailer so it’s possible.



If you are on a dedicated box then I would use SMTP. If your mail server is configured properly and RFC compliant then you won’t have many problems as long as you can stay clear of RBLs. Make sure you are not already listed on any.

[URL]Email Blacklist Check - IP Blacklist Check - See if your server is blacklisted

[quote name=‘S-Combs’]Your sending options are very limited with PHPmail and sendmail (worse).



Some tweaks can be made to its config file to change the headers it sends but it could still be flagging some new gmail spam rules. I haven’t heard of anyone else having a problem with them though. A couple years ago nobody could send to Hotmail accounts from PHPmailer so it’s possible.



If you are on a dedicated box then I would use SMTP. If your mail server is configured properly and RFC compliant then you won’t have many problems as long as you can stay clear of RBLs. Make sure you are not already listed on any.

[URL]Email Blacklist Check - IP Blacklist Check - See if your server is blacklisted



Not listed in blacklist, and I did a test with SMTP - still seems to have problems - the account creation and account update notifications are sent in the inbox. The order mail gets in the spam folder sometimes.

This is the weird thing, it doesn’t always go to spam … sometimes it makes it to the inbox. Could it be due to the huge HTML for the invoice? The invoice is always attached to the message.

Is there a way to remove the invoice from getting “attached”?



Thank you.

Actually the invoice is in-line html.

You could instrument the fn_send_mail() fundtion to prove to yourself that it is indeed sending mail and that there are no errors being returned (they are not looked for by default).

I removed the invoice from the e-mail and it seems that all e-mails reach the inbox now. Must be something with the HTML of the invoice.


[quote name=‘tbirnseth’]Actually the invoice is in-line html.

You could instrument the fn_send_mail() fundtion to prove to yourself that it is indeed sending mail and that there are no errors being returned (they are not looked for by default).[/QUOTE]