im developing a site who sends A LOT of emails notifications to my users from a php script who is running almost all the time, I will like to format the email mensage in order to make it non-spamm-like so my users can read the info non in the spam folder.
What suggestions do you can offer me? Do i need to use non html mensages? Is there some rules in the naming of the email address? (like no-reply@myhost.com)
I know there is not a 100% secure method, but i will like to make it the best possible. Thanks!
To do that you probably have to configure DKIM/SPF.
DomainKeys Identified Mail (DKIM) is a method for associating a domain name to an email
To setup DKIM in PHP you could have a look at this Stackoverflow topic
Sender Policy Framework (SPF), as defined in RFC 4408, is an e-mail validation system designed to prevent e-mail spam by tackling source address spoofing, a common vulnerability.
This link might help you setup DKIM and SPF.
Have a look at this list(more complete?) from Sendgrid:
I don't think this is the most simple task. Luckily services like Sendgrid help you sent out emails without them being flagged as spam. They also provide a free plan(200 messages per day).
Also you have to keep in mind that when you sent a lot of emails you should be queuing your emails to sent out emails in a controlled manner(not overloading your server). This is also taking care of by third-party services to sent emails. Also if you are using shared hosting I don't think they will appreciate if you sent a lot emails because your resources are shared with all other users.
Some other alternatives to sendgrid are:
When searching Google you can find a lot more.