I have several rails applications on a shared hosting.
To avoid the server's restriction of sending mails, I use an external
SMTP.
It works most of times but for some sender emails it gives an error.
I have several rails applications on a shared hosting.
To avoid the server's restriction of sending mails, I use an external
SMTP.
It works most of times but for some sender emails it gives an error.
The error happens if sender's domain is gmail.com, yahoo.com or
hotmail.com.
But it works most other domains.
How do I avoid this error?
Well the first to do is probably to ask the provider of your smtp
server what rules they have in place. Even if that's not issue, the
fact that your sending email claiming to be from something@gmail.com
but not from an smtp server that's on gmail's SPF list makes it far
more likely that your messages will be classed as spam