日期:2014-05-17  浏览次数:20538 次

请问system.net.mail中发件人名称的属性
请问在system.net.mail类发送邮件时,在收件人邮箱中显示发件人那一项是用的哪个属性,是属于哪一个类的、
asp.net? system.net.mail 发件人

------解决方案--------------------
先使用var sender = new System.Net.Mail.MailAddress(string address, string displayName);
然后使用var mail = new System.Net.Mail.MailMessage(sender, MailAddress to);

------解决方案--------------------
var sender = new System.Net.Mail.MailAddress(string address, string displayName);