Table of Contents

MailDistributor Constructor

Definition

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

MailDistributor(Func<SmtpClient>, int)

Initializes a new instance of the MailDistributor class.

public MailDistributor(Func<SmtpClient> carrier, int deliverySize = 20)

Parameters

carrier Func<SmtpClient>

The function delegate that will instantiate a new mail carrier per delivery.

deliverySize int

The maximum number of mails a carrier can deliver at a time. Default is a size of 20.

Remarks

A delivery is determined by the deliverySize. This means, that if you are to send 100 e-mails and you have a deliverySize of 20, these 100 e-mails will be distributed to 5 invoked instances of carrier shipping up till 20 e-mails each (depending if you have a filter or not).