推荐.Net下的邮件发送接受组件
http://www.eastasp.com/zh-cn/products/eastasp.framework.net/download.aspx

解决方案 »

  1.   

    http://expert.csdn.net/Expert/topic/2782/2782880.xml?temp=8.657473E-02
      

  2.   

    Configuration conf=new ConfigurationClass();
    conf.Fields[CdoConfiguration.cdoSendUsingMethod].Value = CdoSendUsing.cdoSendUsingPort;
    conf.Fields[CdoConfiguration.cdoSMTPServer].Value = "smtp.163.com";
    conf.Fields[CdoConfiguration.cdoSMTPServerPort].Value = 25;
    conf.Fields[CdoConfiguration.cdoSMTPAuthenticate].Value = CdoProtocolsAuthentication.cdoBasic;
    conf.Fields[CdoConfiguration.cdoSendUserName].Value = "帐号";
    conf.Fields[CdoConfiguration.cdoSendPassword].Value = "密码";
    conf.Fields.Update();


    MessageClass msg = new MessageClass();
    msg.Configuration=conf;

    msg.From = "[email protected]";
    msg.To = "[email protected]";
    msg.Subject = "help";
    msg.TextBody = "help";
    msg.Send();
      

  3.   

    这是个发邮件的例子:
    http://www.c-sharpcorner.com/Internet/MailingAppMG.asp
      

  4.   

    推荐:HSkyXSmtp Web邮件群发组件 1.5介绍:
        HSkyXSmtp Web邮件群发专家,使用简单,功能强大。
      同时支持匿名和身份验证,适用于多种服务器环境,更方便使用。
      率先支持用户名和密码加密保护机制,更加安全可靠。
      采用多文本编辑模式,可直接添加字符和调入文本文件,信件格式更随心所欲。
      支持html编码超文本信件,让你的信件别出心裁,更具亮点。
      可同时发送多个附件,操作简单,速度极快。
      采用了标准的Com组件方式,只需服务器端注册即可,而再也不用担心客户机是否支持。
    下载地址:
    http://www.skyec.com/U_View_cpxz_detail.asp?ProductID=11
      

  5.   

    请问 tfming,对其它服务器又要怎样设置用户和密码呢
      

  6.   

    private void Page_Load(object sender, System.EventArgs e)
    {
    MailMessage mail = new MailMessage();
    mail.To = "[email protected]";
    mail.From = "[email protected]";
    mail.Subject = "this is a test email.";
    mail.Body = "Some text goes here";
    mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); //basic authentication
    mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "my_username_here"); //set your username here
    mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "super_secret"); //set your password here SmtpMail.SmtpServer = "mail.mycompany.com";  //your real server goes here
    SmtpMail.Send( mail );
    }