Use default SMTP server to send email
I have VB.NET code that sends an email from my customers to me (for product registration), so I don't want to have to define the SMTP server. Rather, I want their default/local SMTP server to be used. There must be a simple solution. Here is my code:
Dim email As New System.Web.Mail.MailMessage
email.To = "[email protected]"
email.From = "[email protected]"
email.Body = "text goes here"
email.Subject = "subject"
email.BodyFormat = Web.Mail.MailFormat.Text
System.Web.Mail.SmtpMail.SmtpServer = "???"
System.Web.Mail.SmtpMail.Send(email)
Thanks!