MailAddress - Formatted Output

JaedenRuiner

Well-known member
Joined
Aug 13, 2007
Messages
340
Programming Experience
10+
When you create a MailAddress class, you can set displayname and address for the MailAddress, and when you attach that to a MailMessage() class, it sends the email to a formatted address. Typically: Display Name <address@me.sfx>. is there anyway to get the full formatted end result out of the MailAddress class, or must I do it manually?

thanks
 
Use the ToString method. Attaching it to a MailMessage is not necessary, and does not change the output ;)
 
Back
Top