IEmailServiceSendEmail Method (ICollectionAccount, ICollectionAccount, ICollectionAccount, String, String, NullableGuid) | 
 
            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.3.0.1000)
Syntaxvoid SendEmail(
	ICollection<Account>? emailAccountsTo,
	ICollection<Account>? emailAccountsCc,
	ICollection<Account>? emailAccountsBcc,
	string subject,
	string body,
	Guid? tenantId
)
Sub SendEmail ( 
	emailAccountsTo As ICollection(Of Account),
	emailAccountsCc As ICollection(Of Account),
	emailAccountsBcc As ICollection(Of Account),
	subject As String,
	body As String,
	tenantId As Guid?
)
void SendEmail(
	ICollection<Account^>^ emailAccountsTo, 
	ICollection<Account^>^ emailAccountsCc, 
	ICollection<Account^>^ emailAccountsBcc, 
	String^ subject, 
	String^ body, 
	Nullable<Guid> tenantId
)
abstract SendEmail : 
        emailAccountsTo : ICollection<Account> * 
        emailAccountsCc : ICollection<Account> * 
        emailAccountsBcc : ICollection<Account> * 
        subject : string * 
        body : string * 
        tenantId : Nullable<Guid> -> unit 
Parameters
- emailAccountsTo
 - Type: System.Collections.GenericICollectionAccount
List of email addresses to send to. - emailAccountsCc
 - Type: System.Collections.GenericICollectionAccount
List of email addresses to CC. - emailAccountsBcc
 - Type: System.Collections.GenericICollectionAccount
List of email addresses to BCC. - subject
 - Type: SystemString
Subject line for the email. - body
 - Type: SystemString
Body of the email. - tenantId
 - Type: SystemNullableGuid
The ID of the tenant associated with the email, or  if the email is not associated with a tenant. 
Exceptions| Exception | Condition | 
|---|
| ArgumentException | There are no recipients specified, or tenantId is Empty. | 
| FormatException | The 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.  | 
| OperationFailedException | An unexpected error occurred when sending the email message. | 
See Also