// TODO: Think of something to get rid of this warning: This async methods lacks await operators ... // TODO: Refactor: Consider creating some base MailMessage type and using it instead /// <inheritdoc cref="IEmailService"/> public async Task SendAsync(Blog.Core.Emails.Email email) { var message = this.GetMailMessage(email.Body, email.Subject, email.From, email.To); await this.client.SendMailAsync(message); }
/// <inheritdoc cref="IEmailService"/> public void Send(Blog.Core.Emails.Email email) { var message = this.GetMailMessage(email.Body, email.Subject, email.From, email.To); this.client.Send(message); }