比如说:
我用[email protected]这个帐号作为邮件服务器发送邮件
但是我想别人看见邮件时,显示发件人“张三”,发件人电子邮箱“[email protected]”请问应该怎么做??

解决方案 »

  1.   

    MailMessage newmail = new MailMessage();
    newmail.From="*********@citiz.net";
    newmail.BodyFormat=MailFormat.Html;
    newmail.Priority = MailPriority.High;
    newmail.To="[email protected]";
    newmail.Subject=subject;
    newmail.Body=body;
    newmail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate","1"); //basic authentication 
    newmail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "username");//set your username here 
    newmail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "password");//set your password here
    MailAttachment attachment = new MailAttachment(saveName);
    newmail.Attachments.Add(attachment);
    SmtpMail.SmtpServer="www.citiz.net";
    SmtpMail.Send(newmail);
      

  2.   

    个人看法 现在的邮件程序都发不出去
    ------------------------
    http://fenglin.xland.cn
    ------------------------
      

  3.   

    二楼的这种方法,newmail.From="*********@citiz.net";这里必须写用来发送的邮箱的验证信息,不能写任意的啊
      

  4.   

    Click the link to solve your problem.Good luck!