File Mover Blog

December 18, 2021

Sending emails using GMail SMTP with OAuth2 authentication

Q: Sending emails using GMail SMTP with OAuth2 authentication. I am trying to set up an outgoing email notification that will happen when a file moves to it’s destination.

8th of May 2022, we are working on an update because of: OAuth out-of-band (oob) flow will be deprecated

Instead of the Google URI urn:ietf:wg:oauth:2.0:oob you’ll have to use a loopback (IP) address as Redirect URI like or http://localhost

In this update (version v2022.5.8.0) a redirect port will be added which is only needed during the OAuth2 verification setup.

Please check: Update Info


A: Yes this is possible.

First check if you enabled the GMail API in your account:

Secondly we’ll need credentials ‘Client ID and Client Secret’  for the OAuth2 authentication:

We added some screenshots to help you with the setup.

Limagito File Mover SMTP Setup

Don’t forget the Security Options:

Limagito File Mover SMTP Setup

OAuth2 Setup:

Limagito File Mover SMTP OAuth2 authentication

Please add the following information:
– Authorization Endpoint URL:
– Token Endpoint URL:
– Client ID
– Client Secret
– Scope:
– Redirect URI: urn:ietf:wg:oauth:2.0:oob
Click GET and your browser will open. Follow steps and copy / paste the code from your browser in the ‘Auth Code’ field.
This will automatically fill in Refresh Token and Access Token. Do not forget to <Save> afterwards.

Limagito File Mover SMTP OAuth2 authentication

RunTime Log Result when testing:

Limagito File Mover RunTime log result


If you need any info about this ‘GMail SMTP’ question, please let us know.

Best regards,

Limagito Team

By Limagito-Team Google SMTP Uncategorized , , Share: