Exemplo n.º 1
0
 public bool SendInviteUserEmail(RegisterViewModel model, string action)
 {
     sender.IsBodyHtml(true);
     sender.AddTo(model.RegisterEmail);
     sender.SetSubject(this.GetInviteUserEmailSubject());
     sender.SetContent(this.GetInviteUserEmailContent(model, action));
     if (sender.SendEmail())
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }