I want to add a Contact Us page which allows the user to fill out a form, and I will then build the message body from the form contents. When the visitor clicks the Submit/Send I want to use the ASP.NET SmtpMail to send it.
My questions are what do I use for the SmtpMail.SmtpServer name and does it matter what I put in the Mail.From address?
localhost or the server's IP should be used for SmtpMail.SmtpServer.
The server checks the existence of the address before sending the emails hence a validMail.From address should be supplied.
Thanks Rock. Thought maybe localhost might work, but wasn't sure, hence the question. By valid, where does it check? Can I just use my email addy? eg From me and To me.