最新下载
热门教程
- 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
相关文章
- 怪物猎人旅人弓有什么玩法技巧 10-14
- 荒原曙光羊皮怎么获得 10-14
- 崩坏因缘精灵佩缨章鱼怎么样 10-14
- 洛克王国世界光灵石如何获取 10-14
- 三国志幻想大陆2枭之歌颜良有什么玩法技巧 10-14
- 荒原曙光银鬃怎么捕捉 10-14