SendAsync Method
Definition
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
mailsIEnumerable<MailMessage>The e-mails to send to an SMTP server.
filterFunc<MailMessage, bool>The function delegate that defines the conditions for sending of the
mailssequence.
Returns
Remarks
The function delegate filter will only include those mails that evaluates to true.