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
address?

Thanks.
-Jason Kendall
Ja**********@hotmail.com
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 = "me@mycompany.com"
mail.From = """John Smith"" <yo*@yourcompany.com>"
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
Ja**********@hotmail.com
Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.