How to Specify Mail Message Properties

Created by akaBot Support, Modified on Wed, 26 Mar at 10:09 AM by akaBot Support


Table of Contents

  1. Description

  2. Example



1. Description

When you retrieve email messages using activities such as "Get Outlook Mail Messages""Get POP3 Mail Messages", or "Get IMAP Mail Messages", they are obtained as a list of the Mail Message type. If you want to process the retrieved email messages, specify and use the properties of the Mail Message.

2. Example

This is an example of how to document the properties and values when a captured email is stored in a MailMessage-type variable named item.




Properties name

Type

Example

Value

① Received Date and Time

Headers("Date")

String

item.Headers("Date")

2020/08/03 19:11:58

② Sender's Display Name

From.DisplayName

String

item.From.DisplayName

akaBot

③ Sender's Address

From.Address

String

item.From.Address

akabot@example.com

Sender's host

※ The part of the address after@

From.Host

String

item.From.Host

example.com

Sender's user

※ The part of the address before@

From.User

String

item.From.User

akabot

④ Subject

Subject

String

item.Subject

Outlook Mail Messages

Number of Recipients

To.Count

Int32

item.To.Count

2

⑤ Recipient Address

To(Element Number).Address

String

item.To(1).Address

user02@example.com

Number of CC

CC.Count

Int32

item.To.Count

2

⑤CC Address

CC(Element Number).Address

String

item.CC(1).Address

user04@example.com

⑦Body Text

Body

String

item.Body

This activity retrieves emails that have already been received in Outlook.

Number of attachments

Attachments.Count

Int32

item.Attachments.Count

0


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article