Interface IMAPI
Defines functionality to open the default client email-dialog.
Namespace: Sartorius.SAF.MAPI
Assembly: Sartorius.SAF.dll
Syntax
public interface IMAPI
Examples
The following example shows how to import the default implementation of IMAPI and open the default mail client.
Methods
View SourceAddAttachment(string)
Adds an attachment from the specified file location.
Declaration
void AddAttachment(string attachmentFileName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | attachmentFileName | The path to the attachment file. |
AddBccRecipient(string)
Adds the specified recipient to the BCC field
Declaration
void AddBccRecipient(string bcc)
Parameters
| Type | Name | Description |
|---|---|---|
| string | bcc | The email address of the recipient. |
AddCcRecipient(string)
Adds the specified recipient to the CC field
Declaration
void AddCcRecipient(string cc)
Parameters
| Type | Name | Description |
|---|---|---|
| string | cc | The email address of the recipient. |
AddRecipient(string)
Adds the specified recipient to the To field.
Declaration
void AddRecipient(string recipient)
Parameters
| Type | Name | Description |
|---|---|---|
| string | recipient | The email address of the recipient. |
OpenMail(string, string)
Opens the default mail application with the given data.
Declaration
void OpenMail(string subject, string body)
Parameters
| Type | Name | Description |
|---|---|---|
| string | subject | A subject value. |
| string | body | A body content. |