Table of Contents

SendOneAsync Method

Definition

Namespace
Cuemon.Net.Mail
Assemblies
Cuemon.Net.dll
Source
src/Cuemon.Net/Mail/MailDistributor.cs

SendOneAsync(MailMessage, Func<MailMessage, bool>)

Sends the specified mail to an SMTP server.

public Task SendOneAsync(MailMessage mail, Func<MailMessage, bool> filter = null)

Parameters

mail MailMessage

The e-mail to send to an SMTP server.

filter Func<MailMessage, bool>

The function delegate that defines the conditions for the sending of mail.

Returns

Task

Remarks

The function delegate filter will only include the mail if that evaluates to true.