php mail() send emails into spam/junk folder

A

Anonymous

Guest
Hi,

I am getting email into my Spam/Junk folder. I have a domain called mynewdomain.com and I am sending email from myname@domain2.com to myname@domain2.com inside this domain using php mail().
Here domain names are different (mynewdomain.com & domain2.com ).

I am not using any smtp to send email.

Please guide, how to avoid emails into spam. It should goes to Inbox.

Thank you.
 
You are supposed to use the domain name (that it is sent from) as the sender of an email, using a different domain / sender is one of the things spammers do to try and stop themselves getting banned or pretending to be someone they're not.
 
Hi,

Thanks for your replay. I have tried with PHPMailer with SMTP, still receiving email into Spam.

Please suggest any way, my email should not deliver into spam/junk.

Thank You,
 
Hello dnsahoo

I have found SwiftMail to help also. Please not it can take quite a bit to get your emails into someones inbox, you need to gain its trust

1. make sure your ip is not ona DNSBL blacklist - mxtoolbox comes in handy for checking this
2. Add DKIM and SPF records to your domain - this will let the receiving end know that the email is coming from you
3. If this is a html email, supply a plain text alternative
4. Check your email with SpamAssassin. If yuour email containins high amounts of money, lots of images, lots of capital letters or anything out of the ordinary, it is likely SpamAssasin could flag it
5. Denote what mailing system your email is coming from using headers - email delivery is all about trust
 
Back
Top