I developed a contact form on a client's website. When a user submits it, the client gets an email.
Is it considered as spam (or against best practices) when emails sent from a website form have From: [email protected]
header (with user's real address)?
The alternative is to have From: [email protected]
and a Reply-to: [email protected]
, which is also not perfect usability-wise (if the client uses an email client that doesn't understand reply-to), but I don't know if that is better given that the other option might get marked as spam.
From
header, even if the client uses a mail service provided by you. It's confusing for your client and may land your server on spam blacklists. It's generally fine to useReply-To
instead, with a clear title as Steve said. If you're concerned about Reply-To, put the email address in the body of the email and make it extremely clear that your client must not use the reply button. "Do not reply to this email. Reply to [address] instead." or similar. They'll drop messages otherwise.