/// <summary> /// 构造函数 /// </summary> /// <param name="stmpserver">SMTP服务器</param> /// <param name="nickname">发送者昵称</param> /// <param name="mailsubject">标题</param> /// <param name="mailbody">正文</param> /// <param name="mailTolist">收件人</param> /// <param name="mailCclist">抄送</param> /// <param name="attachmentsPathlist">附件</param> /// <param name="isbodyhtml">正文是否是html格式</param> /// <param name="mailPriority">优先级别</param> public SmtpClientManager(SmtpServer stmpserver, string nickname, string mailsubject, string mailbody, string[] mailTolist, string[] mailCclist, string[] attachmentsPathlist, bool isbodyhtml, MailPriority mailPriority) { StmpServer = stmpserver; NickName = nickname; MailSubject = mailsubject; MailBody = mailbody; MailToList = mailTolist; MailCcList = mailCclist; AttachmentsPathList = attachmentsPathlist; IsbodyHtml = isbodyhtml; Priority = mailPriority; }
/// <summary> /// 构造函数 /// </summary> /// <param name="stmpserver">SMTP服务器</param> /// <param name="nickname">发送者昵称</param> /// <param name="mailsubject">标题</param> /// <param name="mailbody">正文</param> /// <param name="mailTolist">收件人</param> /// <param name="attachmentsPathlist">附件</param> public SmtpClientManager(SmtpServer stmpserver, string nickname, string mailsubject, string mailbody, string[] mailTolist, string[] attachmentsPathlist) : this(stmpserver, nickname, mailsubject, mailbody, mailTolist, null, attachmentsPathlist, true, MailPriority.Normal) { }
/// <summary> /// 构造函数 /// </summary> /// <param name="stmpserver">SMTP服务器</param> /// <param name="nickname">发送者昵称</param> /// <param name="mailsubject">标题</param> /// <param name="mailbody">正文</param> /// <param name="mailTolist">收件人</param> /// <param name="mailPriority">优先级别</param> public SmtpClientManager(SmtpServer stmpserver, string nickname, string mailsubject, string mailbody, string[] mailTolist, MailPriority mailPriority) : this(stmpserver, nickname, mailsubject, mailbody, mailTolist, null, null, true, mailPriority) { }