• λ我爱Aspx >> Asp.Net >> c# 支持SMTP服务器认证的邮件发送类
  • c# 支持SMTP服务器认证的邮件发送类

  • :未知  Դ:internet  :2007-5-20 16:44:04  ؼ:c#
  • {

    if(str==null||str.Trim()=="")

    return true;

    if(RecipientBCCNum<10)

    {

    RecipientBCC.Add(RecipientBCCNum,str);

    RecipientBCCNum++;

    return true;

    }

    else

    {

    errmsg+="收件人过多";

    return false;

    }

    }

    /// <summary>

    /// 添加一组密件收件人(不超过10个),参数为字符串数组

    /// </summary>

    /// <param name="str">保存有收件人地址的字符串数组(不超过10个)</param>

    public bool AddRecipientBCC(string[] str)

    {

    for(int i=0;i<str.Length;i++)

    {

    if(!AddRecipientBCC(str[i]))

    {

    return false;

    }

    }

    return true;

    }

    /// <summary>

    /// 发送SMTP命令

    /// </summary>

    private bool SendCommand(string Command)

    {

    byte[] WriteBuffer;

    if(Command==null||Command.Trim()=="")

    {

    return true;

    Ҷƪл˵?
  • һƪC#编程发送邮件
    һƪ加固Windows Server 2003 IIS 服务器