Show / Hide Table of Contents

Class MAPI

Provides functionality to open the default mail application with a preconfigured mail with attachments.

Inheritance
System.Object
MAPI
Implements
IMAPI
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 Source

AddAttachment(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.

View Source

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.

View Source

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.

View Source

AddRecipient(String)

Adds the specified recipient to the To field.

Declaration
public void AddRecipient(string to)
Parameters
Type Name Description
System.String to
View Source

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.

Implements

IMAPI

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX