Sending and receiving Gmail(Power Automate Desktop)

08/07/2023

Japanese version.

Learn how to send and receive Gmail from Power Automate Desktop.

Procedure

Preparation

Go to "Security" in your Google account and click on "2-Step Verification".

Click on "App passwords" at the bottom.

Specify "Mail" as the app and "Windows computer" as the device.

Click the Generate button to generate an app password.

This app password will be used in the action.

If you also want to receive email, you will also need to configure the following settings

In Gmail settings, select "Enable IMAP" under "Forwarding and POP/IMAP".

Send mail

Drag "Send email" from "Email" under "Actions".

Set parameters.

ParameterValue.Please change the text color red by yourself.
SMPT Serversmtp.gmail.com
Server Port465
Enable SSLON
SMPT Server needs authenticationON
User nameGmail email address
PasswordApp password

Once other necessary information is set, the e-mail can be sent.

Retrieve mail

Drag "Retrieve email messages" from "Email" under "Actions".

Set parameters.

ParameterValue.Please change the text color red by yourself.
IMAP Serverimap.gmail.com
Port993
Enable SSLON
User nameGmail email address
PasswordApp password

Specify any mail condition to be retrieved to the mail filter.

Next, set up "For Each" and specify "RetrievedEmails".

This will repeat all emails.

CurrentItem is an email message variable.

In the loop, %CurrentItem.Body% to retrieve the body of the message and %CurrentItem.From% to retrieve the source address.

For those who want to learn Power Automate Desktop effectively


The information on this site is now available in an easy-to-read e-book format.

Or Kindle Unlimited (unlimited reading).

You willl discover how to about basic operations.

By the end of this book, you will be equipped with the knowledge you need to use Power Automate Desktop to streamline your workflow.

Links

Email Actions

Tips(Power Automate Desktop)