当前位置:编程学习 > C#/ASP.NET >>

第二部分,公共属性

接上
--------------------------------------
/// <summary>
/// 最多收件人数量
/// </summary>
public int RecipientMaxNum
{
    set
    {
        recipientmaxnum = value;
    }
}
/// <summary>
/// 邮件服务器域名和验证信息
/// 形如:"user:pass@www.server.com:25",也可省略次要信息。如"user:pass@www.server.com"或"www.server.com"
/// </summary>    
public string MailDomain
{
    set
    {
        string maidomain=value.Trim();
        int tempint;
        if(maidomain!="")
        {
       tempint=maidomain.IndexOf("@");
       if(tempint!=-1)
       {
       string str=maidomain.Substring(0,tempint);
              MailServerUserName=str.Substring(0,str.IndexOf(":"));
              MailServerPassWord=str.Substring(str.IndexOf(":")+1,str.Length-str.IndexOf(":")-1);
补充:asp.net教程,远程及网络应用
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,