コード例 #1
0
ファイル: EmailSender.cs プロジェクト: teamcore/Utility
 /// <summary>
 /// Sends the specified email account.
 /// </summary>
 /// <param name="emailAccount">The email account.</param>
 /// <param name="email">The email.</param>
 public virtual void Send(EmailAccount emailAccount, QueuedEmail email)
 {
     Send(emailAccount, email.Subject, email.Body, email.To, email.ToName, new string[] { email.Bcc }, new string[] { email.Cc }, email.Priority);
 }
コード例 #2
0
ファイル: EmailSender.cs プロジェクト: teamcore/Utility
 /// <summary>
 /// Sends the specified email account.
 /// </summary>
 /// <param name="emailAccount">The email account.</param>
 /// <param name="subject">The subject.</param>
 /// <param name="body">The body.</param>
 /// <param name="fromAddress">From address.</param>
 /// <param name="fromName">From name.</param>
 /// <param name="toAddress">To address.</param>
 /// <param name="toName">To name.</param>
 /// <param name="bcc">The BCC.</param>
 /// <param name="cc">The cc.</param>
 /// <param name="priority">The priority.</param>
 public virtual void Send(EmailAccount emailAccount, string subject, string body, string toAddress, string toName, IEnumerable <string> bcc = null, IEnumerable <string> cc = null, MailPriority priority = MailPriority.Normal)
 {
     Send(emailAccount, subject, body, new MailAddress(toAddress, toName), bcc, cc, priority);
 }