IEmailServiceSendEmail(ICollectionString, ICollectionString, ICollectionString, String, String) Method

Uses the application's configured email settings to send an email.

Namespace: Dundas.BI.Services
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (26.2.0.1000)
Syntax
void SendEmail(
	ICollection<string>? emailAddressesTo,
	ICollection<string>? emailAddressesCc,
	ICollection<string>? emailAddressesBcc,
	string subject,
	string body
)

Parameters

emailAddressesTo  ICollectionString
List of email addresses to send to.
emailAddressesCc  ICollectionString
List of email addresses to CC.
emailAddressesBcc  ICollectionString
List of email addresses to BCC.
subject  String
Subject line for the email.
body  String
Body of the email.
Exceptions
ExceptionCondition
ArgumentExceptionThere are no recipients specified, or tenantId is Empty.
FormatExceptionThe format of the provided email addresses is invalid.
NotSupportedException

The email delivery type in the application configuration is set to None (error code 2500).

-or-

The sender address is not set in the application configuration (error code 2501).

-or-

The email delivery type in application configuration is DropFolder and the pick up directory is invalid.

OperationFailedExceptionAn unexpected error occurred when sending the email message.
See Also