接上
--------------------------------------
///
/// 最多收件人数量
/// public int RecipientMaxNum
{
set
{
recipientmaxnum = value;
}
}
///
/// 邮件服务器域名和验证信息
/// 形如:"user:[email protected]:25",也可省略次要信息。如"user:[email protected]"或"www.server.com"
/// 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(":"));
MailServerPass
Word=str.Substring(str.IndexOf(":")+1,str.Length-str.IndexOf(":")-1);