Don't want my emails to be considered spam

My website allows a person to enter their name and email address when sending out a referral. Then our site composes an email using mail() to send it out. But I think more and more ISPs are rejecting such emails because they think we are spoofing. The FROM: field on the emails going out use their name and their email address. What is the best way to overcome so much email being blocked?

  1. No longer attempt to use their name and email as the FROM?
  2. Have my site officially login to my STMP server and send once authenticated?

Can someone with experience in this area give me a suggestion?

Thanks!

let :google: be your friend :slight_smile:

if you google something like “detect spam emails” you will get a truck load of info on what not to do.