Table of Contents

SendAsync Method

Definition

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

SendAsync(IEnumerable<MailMessage>, Func<MailMessage, bool>)

Sends the specified sequence of mails to an SMTP server.

public Task SendAsync(IEnumerable<MailMessage> mails, Func<MailMessage, bool> filter = null)

Parameters

mails IEnumerable<MailMessage>

The e-mails to send to an SMTP server.

filter Func<MailMessage, bool>

The function delegate that defines the conditions for sending of the mails sequence.

Returns

Task

Remarks

The function delegate filter will only include those mails that evaluates to true.