Пример #1
0
 /// <summary>
 ///  Creates a new Email instance using the given engines and mailing address.
 /// </summary>
 /// <param name="sender">The email sending implementation</param>
 /// <param name="emailAddress">Email address to send from</param>
 /// <param name="name">Name to send from</param>
 public BabouEmail(IBabouSender sender, string emailAddress, string name = "")
 {
     EmailData = new EmailData()
     {
         FromAddress = new Address()
         {
             EmailAddress = emailAddress, Name = name
         }
     };
     Sender = sender;
 }
Пример #2
0
 /// <summary>
 /// Creates a new email instance with overrides for the rendering and sending engines.
 /// </summary>
 /// <param name="sender">The email sending implementation</param>
 public BabouEmail(IBabouSender sender)
     : this(sender, null, null)
 {
 }