A Sandcastle Documented Class Library

# IEmailService SendEmail Method (ICollection String , ICollection String , ICollection String , String, String)

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 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    void SendEmail(
    	ICollection<string> emailAddressesTo,
    	ICollection<string> emailAddressesCc,
    	ICollection<string> emailAddressesBcc,
    	string subject,
    	string body
    )

    Sub SendEmail (
    	emailAddressesTo As ICollection(Of String),
    	emailAddressesCc As ICollection(Of String),
    	emailAddressesBcc As ICollection(Of String),
    	subject As String,
    	body As String
    )

    void SendEmail(
    	ICollection<String^>^ emailAddressesTo,
    	ICollection<String^>^ emailAddressesCc,
    	ICollection<String^>^ emailAddressesBcc,
    	String^ subject,
    	String^ body
    )

    abstract SendEmail :
            emailAddressesTo : ICollection<string> *
            emailAddressesCc : ICollection<string> *
            emailAddressesBcc : ICollection<string> *
            subject : string *
            body : string -> unit

#### Parameters

emailAddressesTo
  Type: System.Collections.Generic
  ICollection
  String
  List of email addresses to send to.
emailAddressesCc
  Type: System.Collections.Generic
  ICollection
  String
  List of email addresses to CC.
emailAddressesBcc
  Type: System.Collections.Generic
  ICollection
  String
  List of email addresses to BCC.
subject
  Type: System
  String
  Subject line for the email.
body
  Type: System
  String
  Body of the email.

Exceptions

Exception | Condition
--- | ---
ArgumentException | There are no recipients specified.
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

#### Reference

IEmailService Interface
SendEmail Overload
Dundas.BI.Services Namespace