代码如下:
public void mail1(string name1,string pwd,string email1,string text1)
{
MailMessage objmail=new MailMessage();
objmail.From="找回密码<[email protected]>";
objmail.To="找回密码<"+email1+">";
objmail.BodyFormat=MailFormat.Text; objmail.Subject="找回密码";
objmail.Body="你的用户名为"+name1+"密码为"+pwd+"验证地址为http://www.pdp.sh/vip3.aspx?text="+text1; SmtpMail.Send(objmail); }有什么办法便163等几个大型点的邮箱能收到!
public void mail1(string name1,string pwd,string email1,string text1)
{
MailMessage objmail=new MailMessage();
objmail.From="找回密码<[email protected]>";
objmail.To="找回密码<"+email1+">";
objmail.BodyFormat=MailFormat.Text; objmail.Subject="找回密码";
objmail.Body="你的用户名为"+name1+"密码为"+pwd+"验证地址为http://www.pdp.sh/vip3.aspx?text="+text1; SmtpMail.Send(objmail); }有什么办法便163等几个大型点的邮箱能收到!
//设置服务器验证
objmail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smt
pauthenticate", "1");
//验证用户名
objmail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sen
dusername", "用户名");
//验证密码
objmail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sen
dpassword", "密码");
SmtpMail.SmtpServer = "SMTP服务器地址";