最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
第三部分,构造函数和公共过程
时间:2022-07-02 12:05:10 编辑:袖梨 来源:一聚教程网
接上
------------------------
//构造函数
public ESmtpMail()
{
Attachments = new System.Collections.ArrayList();
}
//-----------------过程
///
/// 添加邮件附件
///
/// 附件绝对路径
public void AddAttachment(string path)
{
Attachments.Add(path);
}
///
/// 添加一个收件人
///
/// 收件人地址
public bool AddRecipient(string str)
{
str=str.Trim();
if(str==null||str==""||str.IndexOf("@")==-1)
return true;
if(RecipientNum
------------------------
//构造函数
public ESmtpMail()
{
Attachments = new System.Collections.ArrayList();
}
//-----------------过程
///
/// 添加邮件附件
///
/// 附件绝对路径
public void AddAttachment(string path)
{
Attachments.Add(path);
}
///
/// 添加一个收件人
///
/// 收件人地址
public bool AddRecipient(string str)
{
str=str.Trim();
if(str==null||str==""||str.IndexOf("@")==-1)
return true;
if(RecipientNum
相关文章
- 守望黎明如何转职业 04-20
- 乱斗西游2怎么抽哪吒 04-20
- 女神异闻录夜幕魅影烧鸟外卖其一怎么攻略 女神异闻录夜幕魅影烧鸟外卖其一攻略方法 04-20
- 碧蓝航线鲤μ兵装获得方法 碧蓝航线鲤μ兵装获得方法 04-20
- 明日方舟BB-EX-5突袭攻略 明日方舟BB-EX-5突袭怎么打 04-20
- 射雕手游金盏罗盘获取位置介绍 射雕手游金盏罗盘怎么获取 04-20