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); } }