Interface "Email Connector v2"
Obsolete
This element will become obsolete from version 26.0. Replaced by "Email Connector v3" which adds filtering capability for retrieval of emails
An e-mail connector interface enhances the "Email Connector" with reading, replying to e-mails and marking emails as read.
Methods
Reply
Reply to an e-mail using the provided account.
procedure Reply(var EmailMessage: Codeunit "Email Message", AccountId: Guid)
Parameters
| Name | Type | Description |
|---|---|---|
| EmailMessage | Codeunit System.Email."Email Message" |
The email message that is to be sent out. |
| AccountId | Guid |
The email account ID which is used to send out the email. |
RetrieveEmails
Read e-mails from the provided account.
procedure RetrieveEmails(AccountId: Guid, var EmailInbox: Record "Email Inbox")
Parameters
| Name | Type | Description |
|---|---|---|
| AccountId | Guid |
The email account ID which is used to send out the email. |
| EmailInbox | Table System.Email."Email Inbox" |
The email inbox record that will store the emails. |
MarkAsRead
Mark an e-mail as read in the provided account.
procedure MarkAsRead(AccountId: Guid, ExternalId: Text)
Parameters
| Name | Type | Description |
|---|---|---|
| AccountId | Guid |
The email account ID. |
| ExternalId | Text |
The external ID of the email. |