using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CY.Infrastructure.Mail { #region 邮件收发代码接口 public interface ISmtpMail { /// /// 端口 /// int MailDomainPort { set; } /// /// 发件人地址 /// string From { set; get; } /// /// 发件人姓名 /// string FromName { set; get; } /// /// 是否支持Html /// bool Html { set; get; } /// /// 邮件标题 /// string Subject { set; get; } /// /// 邮件内容 /// string Body { set; get; } /// /// 邮件服务器地址 /// string MailDomain { set; } /// /// 用户名 /// string MailServerUserName { set; } /// /// 口令 /// string MailServerPassWord { set; } /// /// 收件人姓名 /// string RecipientName { set; get; } /// /// 收件人列表 /// /// /// bool AddRecipient(params string[] username); /// /// 发送 /// /// bool Send(); } #endregion }