Exemplo n.º 1
0
 /// <summary>
 /// Initialise an email with an IEmailEntity
 /// </summary>
 /// <param name="templateId">The ID of the template</param>
 /// <param name="from">An email entity instance</param>
 public TemplateEmailMessage(int templateId, IEmailEntity from)
 {
     TemplateId = templateId;
     From       = from ?? throw new ArgumentNullException(nameof(from));
 }
 /// <summary>
 /// Initialise an email with an IEmailEntity
 /// </summary>
 /// <param name="from">An email entity instance</param>
 public EmailMessage(IEmailEntity from)
 {
     From = from ?? throw new ArgumentNullException(nameof(from));
 }