In VB.Net (Or C#) when I create the code to send out an email, I always set the "sender" to an email on my server instead of the email of the person who's filling the form.
Little example:
System.Net.Mail.MailMessage = New System.Net.Mail.MailMessage()
mailMessage.From = New System.Net.Mail.MailAddress("[email protected]")
mailMessage.To.Add(New System.Net.Mail.MailAddress("[email protected]"))
This is important because most hosting providers restrict using an email which relies outside of your hosting environment to send out an email (security purposes which I totally understand).
The above works really well, but the problem is when someone wants to reply to the email, they are actually going to be replying to their own email address, unless they manually copy the email of the person from the content of the message and put it in the "To" field while replying.
I would like to know what are the best practices today in order to deal sending emails.
I see some emails I get with "On Behalf Of" and others with "Reply To".
Is there anything else I am missing here? Please advice.