MailService.Send Method

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

Overloads

Send(EmailModel, SmtpClient) Sends the specified EmailModel.
Send(MailMessage, SmtpClient, bool) Sends the specified System.Net.Mail.MailMessage.

Send(EmailModel, SmtpClient)

Sends the specified EmailModel.

public static bool Send(EmailModel model, SmtpClient smtp = null)

Parameters

model
EmailModel
smtp
System.Net.Mail.SmtpClient

The System.Net.Mail.SmtpClient settings to use or null to use default settings.

Returns

bool

Send(MailMessage, SmtpClient, bool)

Sends the specified System.Net.Mail.MailMessage.

public static bool Send(MailMessage message, SmtpClient smtp = null, bool linkResources = false)

Parameters

message
System.Net.Mail.MailMessage

The System.Net.Mail.MailMessage to send.

smtp
System.Net.Mail.SmtpClient

The System.Net.Mail.SmtpClient settings to use or null to use default settings.

linkResources
bool

true to convert image urls in the message to linked resources, otherwise false.

Returns

bool