Tuesday, February 24, 2015

Sending e-mails from Lightroom and Gmail with two-factor authentication

So you want to be able to send e-mails with your photos directly from Lightroom, but have not been able to get it to work. When you enter your username/e-mail and password, Lightroom fails to validate the settings or fails when you send the mail. You realize that you've enabled two-factor authentication for you Gmail account (which is great and you should do it!) and wonder how to get it to work, since Lightroom does not ask for your authentication code.

Well, there is a solution. Google allows you to make 'App Passwords' which is logins for your Gmail that does not need two-factor authentication. Instead you get a fairly complex password that you can then enter into your App still be allowed to send mails.

Btw: This also works for Google Apps accounts!

Here is how to do it.

  1. Goto Google Account settings.
  2. Scroll down to 'App passwords' and click it
  3. Enter your Gmail password
    Since you are adding/changing some security settings, Google will ask you to provide your password.
  4. Click on 'Select app' and choose 'Other (Custon name)'
  5. In the field enter 'Lightroom' or something that will remind you what you are using this account for, and click Generate
  6. You will be presented with a app password consisting of 4 4- character blocks. Select and copy this password and click Done
  7. Open Lightroom
  8. Click CTRL+Shift+M (or File -> Email photo...)
  9. In the Service Provider field, select Gmail
    Fill out your Account name (usually your real or company name)
    Add your email address
    Finally paste the password from step 6 into the Password field
  10. Click OK and you are ready to go!
If you want to make sure it works, before sending mails, click on the From: field and select 'Go to Email Account Manager...'.


Click in the Validate button and Lightroom will check if the settings are ok. If they are, you will see a green dot next to your Account name and right underneath it, it will say Validated.


There you go. You can now send mails from Lightroom even though you have two-factor authentication setup for your Gmail account.

No comments:

Post a Comment