By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,693 Members | 1,267 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,693 IT Pros & Developers. It's quick & easy.

Sending email using the SMTP classes.

P: n/a
I can send emails all day long, no problem.

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

-Jason Kendall
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Found the answer. I knew it had to be something simple.

Dim mail As New MailMessage()
mail.To = ""
mail.From = """John Smith"" <yo*>"
mail.Subject = "this is a test email."
mail.Body = "this is my test email body."
SmtpMail.SmtpServer = "localhost" 'your real server goes here

Many thanks to:
-Jason Kendall
Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.