Class MAPI
Provides functionality to open the default mail application with a preconfigured mail with attachments.
Inheritance
System.Object
MAPI
Implements
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.MAPI
Assembly: Sartorius.SAF.dll
Syntax
[Export(typeof(IMAPI))]
[PartCreationPolicy(CreationPolicy.NonShared)]
public class MAPI : IMAPI
Methods
View SourceAddAttachment(String)
Adds an attachment from the specified file location.
Declaration
public void AddAttachment(string attachmentFileName)
Parameters
Type | Name | Description |
---|---|---|
System.String | attachmentFileName | The path to the attachment file. |
AddBccRecipient(String)
Adds the specified recipient to the BCC field
Declaration
public void AddBccRecipient(string bcc)
Parameters
Type | Name | Description |
---|---|---|
System.String | bcc | The email address of the recipient. |
AddCcRecipient(String)
Adds the specified recipient to the CC field
Declaration
public void AddCcRecipient(string cc)
Parameters
Type | Name | Description |
---|---|---|
System.String | cc | The email address of the recipient. |
AddRecipient(String)
Adds the specified recipient to the To field.
Declaration
public void AddRecipient(string to)
Parameters
Type | Name | Description |
---|---|---|
System.String | to |
OpenMail(String, String)
Opens the default mail application with the given data.
Declaration
public void OpenMail(string subject, string body)
Parameters
Type | Name | Description |
---|---|---|
System.String | subject | A subject value. |
System.String | body | A body content. |