public async Task <bool> SendActivateUserAccount(string emailAddress, string activationUrl) { var model = new { ActivationUrl = activationUrl, }; var content = new EmailContent() { HtmlText = templateExecutor.Execute("ActivateUserAccount.cshtml", model), PlainText = templateExecutor.Execute("ActivateUserAccount.txt", model) }; using (var message = messageCreator.Create(emailAddress, "Activate your WEEE user account", content)) { return(await sender.SendAsync(message)); } }