IEmailService.SendEmail Method (MailMessage, Nullable<Guid>) |
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 (25.2.0.1000)
Syntaxvoid SendEmail(
MailMessage message,
Guid? tenantId
)
Sub SendEmail (
message As MailMessage,
tenantId As Guid?
)
void SendEmail(
MailMessage^ message,
Nullable<Guid> tenantId
)
abstract SendEmail :
message : MailMessage *
tenantId : Nullable<Guid> -> unit
Parameters
- message
- Type: System.Net.Mail.MailMessage
The message to send. - tenantId
- Type: System.Nullable<Guid>
The ID of the tenant associated with the email, or null if the email is not associated with a tenant.
ExceptionsException | Condition |
---|
ArgumentNullException | message is null, or tenantId is Empty. |
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. |
OperationFailedException | An unexpected error occurred when sending the email message. |
RemarksThe
From property of the message is always set by the system.
See Also