Ews.SendMessage Method
Namespace: Rebex.Net
Assembly: Rebex.Ews.dll (version 7.0.9083)
SendMessage(MailMessage)
Sends a mail message and saves it to the 'Sent Items' folder.
Declaration
public void SendMessage(MailMessage message)
Parameters
Type | Name | Description |
---|---|---|
MailMessage | message | Message to send. |
SendMessage(MailMessage, EwsFolderId)
Sends a mail message.
Declaration
public void SendMessage(MailMessage message, EwsFolderId saveFolderId)
Parameters
Type | Name | Description |
---|---|---|
MailMessage | message | Message to send. |
EwsFolderId | saveFolderId | ID of a folder to which to save the sent message. Specify null (Nothing in VB.NET) to send the message without saving it at the Exchange server. |
SendMessage(MailMessage, EwsFolderId, Nullable<DateTime>)
Sends a mail message.
Declaration
public void SendMessage(MailMessage message, EwsFolderId saveFolderId, DateTime? sendTime)
Parameters
Type | Name | Description |
---|---|---|
MailMessage | message | Message to send. |
EwsFolderId | saveFolderId | ID of a folder to which to save the sent message. Specify null (Nothing in VB.NET) to send the message without saving it at the Exchange server. |
Nullable<DateTime> | sendTime | Date and time when to send the message (also known as delay sending). If the value is smaller than the current time, the message is sent immediately. |
SendMessage(MimeMessage)
Sends a MIME message and saves it to the 'Sent Items' folder.
Declaration
public void SendMessage(MimeMessage message)
Parameters
Type | Name | Description |
---|---|---|
MimeMessage | message | Mime message to send. |
SendMessage(MimeMessage, EwsFolderId)
Sends a MIME message.
Declaration
public void SendMessage(MimeMessage message, EwsFolderId saveFolderId)
Parameters
Type | Name | Description |
---|---|---|
MimeMessage | message | Mime message to send. |
EwsFolderId | saveFolderId | ID of a folder to which to save the sent message. Specify null (Nothing in VB.NET) to send the message without saving it an the Exchange server. |
SendMessage(MimeMessage, EwsFolderId, Nullable<DateTime>)
Sends a MIME message.
Declaration
public void SendMessage(MimeMessage message, EwsFolderId saveFolderId, DateTime? sendTime)
Parameters
Type | Name | Description |
---|---|---|
MimeMessage | message | Mime message to send. |
EwsFolderId | saveFolderId | ID of a folder to which to save the sent message. Specify null (Nothing in VB.NET) to send the message without saving it an the Exchange server. |
Nullable<DateTime> | sendTime | Date and time when to send the message (also known as delay sending). If the value is smaller than the current time, the message is sent immediately. |
SendMessage(String, String, String)
Sends a message composed from the arguments and stores it to the 'Sent Items' folder.
Declaration
public void SendMessage(string to, string subject, string body)
Parameters
Type | Name | Description |
---|---|---|
String | to | Comma-separated list of message recipients. |
String | subject | The subject of the message. |
String | body | The text body of the message. |
SendMessage(String, String, EwsMessageBody)
Sends a message composed from the arguments and stores it to the 'Sent Items' folder.
Declaration
public void SendMessage(string to, string subject, EwsMessageBody body)
Parameters
Type | Name | Description |
---|---|---|
String | to | Comma-separated list of message recipients. |
String | subject | The subject of the message. |
EwsMessageBody | body | The body of the message. |
SendMessage(String, String, String, EwsFolderId)
Sends a message composed from the arguments.
Declaration
public void SendMessage(string to, string subject, string body, EwsFolderId folderId)
Parameters
Type | Name | Description |
---|---|---|
String | to | Comma-separated list of message recipients. |
String | subject | The subject of the message. |
String | body | The text body of the message. |
EwsFolderId | folderId | ID of a folder to which to save the sent message. Specify null (Nothing in VB.NET) to send the message without saving it in the Exchange server. |
SendMessage(String, String, EwsMessageBody, EwsFolderId)
Sends a message composed from the arguments.
Declaration
public void SendMessage(string to, string subject, EwsMessageBody body, EwsFolderId folderId)
Parameters
Type | Name | Description |
---|---|---|
String | to | Comma-separated list of message recipients. |
String | subject | The subject of the message. |
EwsMessageBody | body | The body of the message. |
EwsFolderId | folderId | ID of a folder to which to save the sent message. Specify null (Nothing in VB.NET) to send the message without saving it in the Exchange server. |
SendMessage(String, String, String, String)
Sends a message composed from the arguments and stores it to the 'Sent Items' folder.
Declaration
public void SendMessage(string from, string to, string subject, string body)
Parameters
Type | Name | Description |
---|---|---|
String | from | Message sender. |
String | to | Comma-separated list of message recipients. |
String | subject | The subject of the message. |
String | body | The text body of the message. |
SendMessage(String, String, String, EwsMessageBody)
Sends a message composed from the arguments and stores it to the 'Sent Items' folder.
Declaration
public void SendMessage(string from, string to, string subject, EwsMessageBody body)
Parameters
Type | Name | Description |
---|---|---|
String | from | Message sender. |
String | to | Comma-separated list of message recipients. |
String | subject | The subject of the message. |
EwsMessageBody | body | The text body of the message. |
SendMessage(String, String, String, String, EwsFolderId)
Sends a message composed from the arguments.
Declaration
public void SendMessage(string from, string to, string subject, string body, EwsFolderId folderId)
Parameters
Type | Name | Description |
---|---|---|
String | from | Message sender. |
String | to | Comma-separated list of message recipients. |
String | subject | The subject of the message. |
String | body | The text body of the message. |
EwsFolderId | folderId | ID of a folder to which to save the sent message. Specify null (Nothing in VB.NET) to send the message without saving it an the Exchange server. |
SendMessage(String, String, String, EwsMessageBody, EwsFolderId)
Sends a message composed from the arguments.
Declaration
public void SendMessage(string from, string to, string subject, EwsMessageBody body, EwsFolderId folderId)
Parameters
Type | Name | Description |
---|---|---|
String | from | Message sender. |
String | to | Comma-separated list of message recipients. |
String | subject | The subject of the message. |
EwsMessageBody | body | The text body of the message. |
EwsFolderId | folderId | ID of a folder to which to save the sent message. Specify null (Nothing in VB.NET) to send the message without saving it an the Exchange server. |
SendMessage(EwsItemId)
Sends a message stored in exchange server and moves it to the 'Sent Items' folder.
Declaration
public void SendMessage(EwsItemId itemId)
Parameters
Type | Name | Description |
---|---|---|
EwsItemId | itemId | ID of a message to send. |
Remarks
This operation needs ChangeKey to be set to the latest value.
SendMessage(EwsItemId, EwsFolderId)
Sends a message stored in exchange server.
Declaration
public void SendMessage(EwsItemId itemId, EwsFolderId saveFolderId)
Parameters
Type | Name | Description |
---|---|---|
EwsItemId | itemId | ID of a message to send. |
EwsFolderId | saveFolderId | ID of a folder to which to move the sent message. Specify null (Nothing in VB.NET) to discard (permanently delete) the message. |
Remarks
This operation needs ChangeKey to be set to the latest value. This operation doesn't work on some Exchange versions (e.g. Exchange 2010) if the message was already sent.