|
-
Dec 30th, 2003, 12:07 AM
#1
Thread Starter
Member
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|