This is a canonical question about avoiding outgoing mail being classified as spam.
Also related:
I'm wondering how to prevent my emails from my site being marked as spam? I'm using sendmail.
I'm trying to send emails through my ruby-on-rails application. The mails are all written in swedish (if that does make a difference?). I don't know why they keep getting marked as spam.
Are there any things that I can do to minimize the risk?