Suppose I have this scenario:
My mail server (and thus MX) for my email address me@company.com is hosted in my office.
My website company.com is hosted by third party web hosting company.
On my website I created a <form>
with FROM, TO, SUBJECT, BODY and send out using PHP mail() to customers.
Since the web server is third party, PHP mail() uses localhost mail server.
I think that my mails will reach the customer's mail server and appear as "forged" or spam.
What do I need to do to ensure my mails appear legitimate and incoming mails will not be sent to the third party web host?
Best Answer
Your messages will be subject to the policies of the receiving domains - the only people who can tell you "What [you] need to do to ensure your mails appear legitimate" are the mail admins at those sites.
Some suggestions:
FROM
andREPLY-TO
addresses point to the places you want bounces/replies/etc. to go