Class MAPI
Allows to send message using MAPI interface.
Inheritance
System.Object
MAPI
Namespace: FastReport.Export.Email
Assembly: FastReport.dll
Syntax
public static class MAPI
Methods
GetErrorText(Int32)
Returns a text describing an error.
Declaration
public static string GetErrorText(int error)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | error | The error code. |
Returns
Type | Description |
---|---|
System.String | The text describing an error. |
SendMail(IntPtr, String[], String, String, String[], String[])
Sends a message.
Declaration
public static int SendMail(IntPtr handle, string[] files, string mailSubject, string mailBody, string[] recipentName, string[] recipientAddress)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | handle | Parent window handle. |
System.String[] | files | Files to attach. |
System.String | mailSubject | Email subject. |
System.String | mailBody | Email body. |
System.String[] | recipentName | Recipient names. |
System.String[] | recipientAddress | Recipient addresses. |
Returns
Type | Description |
---|---|
System.Int32 | Error code. 0 if operation was completed succesfully. |