MailService Class

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

Service layer for sending email.

public static class MailService
Inheritance:
System.Object → MailService

Methods

GetSmtpClient() Returns an System.Net.Mail.SmtpClient with the settings from ConfigurationService.
IsConfigured() Returns true if application is configured to send emails, otherwise false.
Send(EmailModel, SmtpClient) Sends the specified EmailModel.
Send(MailMessage, SmtpClient) Sends the specified System.Net.Mail.MailMessage.
SendAsync(MailMessage) Sends the specified System.Net.Mail.MailMessage using smtp settings from ConfigurationService. This method does not block the calling thread.
SendAsync(MailMessage, SmtpClient) Sends a System.Net.Mail.MailMessage using the specified smtp settings. This method does not block the calling thread.