Sending email using the SMTP classes.

  • Thread starter Thread starter Jason Kendall
  • Start date Start date
J

Jason Kendall

I can send emails all day long, no problem.

How can I specify the "From" Name that goes with the From email
address?

Thanks.


-Jason Kendall
(e-mail address removed)
 
Found the answer. I knew it had to be something simple.

Dim mail As New MailMessage()
mail.To = "(e-mail address removed)"
mail.From = """John Smith"" <[email protected]>"
mail.Subject = "this is a test email."
mail.Body = "this is my test email body."
SmtpMail.SmtpServer = "localhost" 'your real server goes here
SmtpMail.Send(mail)

Many thanks to: http://www.systemwebmail.net


-Jason Kendall
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top