?using sendmail for actionmailer marks my emails as spam

hi list
i am trying to understand how sendmail works, instead of using an outgoing mail server. it works for gmail and live.com but doesnt for yahoo or hotmail for example. they dont even get to the spam folder.

i am complete beginner for email. what should i do to flag outgoing emails as proper email by using sendmail

thanks

Make sure you are sending from an email address that is from the domain your
rails app is on.

Services like hotmail use SPF (Sender Policy Framework) DNS Records
http://www.openspf.org

And if the email isn’t from that domain it gets rejected

make sure the subject and body contain real info on the site and purpose
ie something like

Foo.bar welcomes you to their newsletter!!

This will help it to not go into junk folders

I didn't read the rest of the thread, but I got that when this line was munged:

ActionMailer::Base.server_settings = {
  :address => "myMailbox.com",
  :port => 25,
  :domain => 'myOwnRealDomain.com', # <-- must be correct
  :user_name => "whatever",
  :password => '****',
  :authentication => :login
    }

The simplest check for spam compares the outbound domain in the mail headers to the actual host the mail came from. If they differ, then either a spammer has penetrated a computer and is using it to mask their real domain name - or a Rails newb is on the loose! :wink: