/// <summary>
/// 发件人信息设置
/// </summary>
/// <param name="MailAddress">发件邮箱地址</param>
/// <param name="MailPwd">邮箱密码</param>
private void setAddressform(string MailAddress, string MailPwd, string DisplayName)
{
//创建服务器认证
NetworkCredential NetworkCredential_my = new NetworkCredential(MailAddress, MailPwd);
//实例化发件人地址
MailAddress_from = new System.Net.Mail.MailAddress(MailAddress, DisplayName);
//指定发件人信息 包括邮箱地址和邮箱密码
SmtpClient.Credentials = NetworkCredential_my;
}
public void ASyn