Application specific password required gmail - ПК журнал

ПК журнал
111 просмотров
Рейтинг статьи
1 звезда2 звезды3 звезды4 звезды5 звезд

Application specific password required gmail

How to Create App-Specific Passwords in Gmail

Access Google apps on devices that don’t support 2FA

Two-factor authentication on your Google account requires a special code—either through a text message or through a mobile app—to accompany your username and password. However, programs like desktop email clients (think Microsoft Outlook or Mozilla Thunderbird or Evolution) cannot send a two-factor challenge response. The solution? An app-specific password, which is a special password tied to your account that’s used only for a specific program, service or situation.

Create a Gmail Application-Specific Password

To generate a new password for an email program, utility or add-on to access your Gmail account through IMAP or POP with two-step authentication enforced:

Click your name or photo near your Gmail inbox’s top right corner.

Tap or click the Google Account button in the sheet that has appeared.

Click the Security button in the left-hand sidebar.

Scroll to the Signing in to Google section.

Under the Password & sign-in method section, click App passwords.

If prompted for your Gmail password, enter your password over Enter your password and click Next.

Make sure Mail or Other (custom name) is selected in the Select app drop-down menu. If you selected Mail, choose a computer or device from the Select device menu. If you selected Other (custom name), type the application or add-on and, optionally, device (like «Mozilla Thunderbird on my Linux laptop») over e.g. YouTube on my Xbox.

Click Generate.

Find and immediately use the password under Your app password for your device. Type or paste the password into the email program, Gmail add-on or service immediately. You will not see it again.

Click Done.

Managing App-Specific Passwords

The value of an application-specific password is that you can revoke and regenerate a password on a service-by-service basis instead of having to change the master password to your account. If you do need to create a new app-specific password for a program or service, revoke passwords previously set up but no longer used for the same application.

It’s best practice to use an app-specific password only for a single service. You are free to generate as many app-specific passwords as you like.

Besides your Google account, you should set up two-factor authentication for a wide range of accounts, and also for your social-media accounts.

How to Generate Google App Specific Password for 2-Step Verification

A few days back I have enabled Google 2 Step verification to improve the security of my Google account. Since, I use one Email address for most of my Google services (Gmail, AdWords..), to ensure my login is more secured.

2 step verification is a very important step for the security of your account.

Now, once you enable 2-step account verification, you might find it little troublesome initially to set up your accounts on different devices. For example, if you are setting up Gmail on iPhone or Gmail on iPad, you need to create one time Google Application specific passwords.

Читать еще:  Excel автоматическая вставка текущей даты

For many other services, you can use Google Authenticator app (Android version, iOS version) to generate one-time verification password. In this guide, we will learn how to create Application specific Google password for users who have enabled 2-step verification.

Creating Application Specific Password for Google 2-Step Verification:

I assume you have already setup 2 step verification on your Gmail/Google account. If you have not done it yet, this page will have all the information you need to set up 2 step verification for your account.

Once you have done the setup and using Gmail on Outlook or on iOS devices, you will get errors saying “Wrong password”. All you need to do is, create one-time Application specific password, and use it to setup your Gmail account on iOS or other mail clients you are using.

This video will give you more details, about App specific password.

  • To get started, log in to your Google authorized application page here, and log in with your Google password.
  • On the page, look for “Generate new application-specific password” and give a name for the application you are generating a password for. Ex: Email on Mac

  • Click on generate. And on the next page, you will see the new password, that you can use on your device. Do remember, if you refresh the page or go back, you need to generate the password again.

Now, if you ever lost access to your device, all you need to do is: Go to the same page and revoke access. This will make sure that your stolen/lost device can not access your Google account.

It may sound like an extra step for your Google account, but I highly recommend to use Google 2-step verification, as it will ensure the safety of your account. If you wish to know more about safety and security of Google account, refer to following articles:

How many of you have enabled Google 2 Step account verification? Do you feel safe after adding this extra layer of security to your Google account?

Outlook and 2-Step Verification for Gmail accounts

With Google moving away from Basic Authentication and recommending to use OAuth instead, I want to enable 2-Step Verification for my Google account to increase security.

How do I best approach this and what changes do I need to make in Outlook to keep receiving my emails?

Outlook 2016, Outlook 2019 and Outlook for Office 365 offer native support for OAuth and 2-Step Verification for Gmail accounts.

For Outlook 2016 (msi, Volume License), Outlook 2013 and previous versions, you’ll need to use an App-Specific Password which you can create on the Google Account website.

Step 1: Enable 2-Step Verification

First, enable 2-Step Verification for your Google Accounts:

  1. Logon to Google and open your Account Settings page. This can be done by visiting:
  2. From the Navigation Pane on the left, click on: Security.

In the “Signing in to Google” section, click on: 2-Step Verification.
This direct link should also take you there.

Google Account Security – Currently 2-Step Verification is off.

  • On the introduction page, click on the “Get Started” button.
  • Provide your password when prompted.
  • Enter a phone number on which you want to receive the verification codes.
    In a later stage, you can safe-list trusted computers and also install an App so you won’t have to deal with SMS messages to log on each time.

    Enter your received verification code.

    Confirm that you want to enable 2-step verification for your account.

    Step 2: Office 365, Outlook 2019 and Outlook 2016; SMS or Authenticator verification

    When you are using Office 365, Outlook 2016 (excluding the msi-version) or Outlook 2019, you can continue to use your regular password and Outlook will prompt you for additional verification. The same applies to the Outlook app for iOS and Android.

    Provide your Gmail email address.

    Authentication verification step 1: Enter your password.

    Authentication verification step 2: Enter a code obtained via an SMS text, the Authenticator app (see Step 3 below) or a Google prompt on your phone.

    One time only; Allow “Microsoft apps & services” to access your Gmail account to manage it in Outlook.

    Step 2: Outlook 2016 (msi) and previous versions; Get an App password for Outlook

    Now that you have enabled 2-Step Verification for your Gmail account, you’ll start getting Send/Receive errors and/or password prompts in Outlook.

    As mentioned before, you’ll need to generate a special “App password” for Outlook instead of trying to logon with your current Gmail password.

    Go back to the Security page for your Google Account and click on the “App passwords” link in the “Signing in to Google section”.

    Google Account Security – Currently 2-Step Verification is on.

  • Provide your password and verification when prompted.
    • Optionally, you can enable the “Don’t ask again on this computer” option.
  • Use the “Select app” dropdown lists to select: Other (Custom name)
  • Type: Outlook.
  • Click the Generate button.

    Copy the obtained password code.

    Note that the app password doesn’t actually contain spaces, the separators between the code blocks are just to improve readability.

  • Go to Outlook and paste or type the obtained app password when being prompted for your password.
    You can also do it directly via your Account Settings.
    • Outlook 2007
      Tools-> Account Settings…-> double click on your Gmail account
    • Outlook 2010, Outlook 2013 and Outlook 2016 (msi)
      File-> Account Settings-> Account Settings…-> double click on your Gmail account
  • Once you’ve updated your password, Outlook will be able to connect to Gmail again with 2-Step Verification enabled for your account.
  • Читать еще:  Конвертирование excel в word

    Optional Step 3: Get codes via a mobile app instead

    Rather than using SMS message to receive verifications codes, you might want to use an App to generate these verification codes instead or enable “Google prompt”.

    1. Go back to the Security page for your Google Account and click on the “2-Step Verification” link in the “Signing in to Google section”.
    2. Provide your password and verification when prompted.
    3. In the Authenticator app section, click on the “Set up” link.

    Select your smartphone type.

  • Install the Google Authenticator app on your phone.
    If you already have the Microsoft Authenticator app (available for iOS and Android) installed, you can use that too.
  • Open the app and when adding the account, use the camera of your phone to scan the barcode and add the account without needing to type anything.
  • On the webpage, enter the generated verification code on your phone to complete the app configuration process.
  • JavaMail API – Sending email via Gmail SMTP example

    In this article, we will show you how to send an email via Gmail SMTP server.

    To send email in Java, we need JavaMail

    1. Gmail SMTP via TLS

    2. Gmail via SSL

    2.1 The logic is the same, just pass in different properties values.

    3. Application-specific password required

    3.1 If 2-Step verification is ON. We will hits the following error message :

    3.2 To fix it, follow this guide to create an App Password

    No difference in code, just puts the newly generated app password instead.




    am getting this error:
    javax.mail.AuthenticationFailedException: 534-5.7.14 Please log in via your web browser and
    534-5.7.14 then try again.
    534-5.7.14 Learn more at
    534 5.7.14 i8sm12193467pao.26 – gsmtp

    Читать еще:  Документ word 97 2003

    at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(
    at com.sun.mail.smtp.SMTPTransport.authenticate(
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(
    at javax.mail.Service.connect(
    at javax.mail.Service.connect(
    at javax.mail.Service.connect(
    at javax.mail.Transport.send0(
    at javax.mail.Transport.send(
    at com.mail.SendMail.main(

    If 2-Step verification is ON, you need to use App Password.

    You must turn on Allow Less Secure Passwords in your google settings at

    It doesn’t work for me. It sticks on Transport.send(message). Could someone help me?

    Do you have any error message?

    I have the same issue….
    com.sun.mail.util.MailConnectException: Couldn’t connect to host, port:, 587; timeout -1;
    nested exception is: Connection refused: connect
    at com.sun.mail.smtp.SMTPTransport.openServer(
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(
    at javax.mail.Service.connect(
    … the errors log goes on

    I copy and pasted the above code and changed the email address to mine, and the password to my password

    me too the same probleme
    how can i Make sure firewall or proxy server didn’t block this .

    have you found the solution if yes could you tell me how I got the same error

    There is solution.
    Head over to Account Security Settings ( and enable “Access for less secure apps”, this allows you to use the google smtp for clients other than the official ones.

    It worked for me!

    After reducing security level
    i am able to authenticate

    0 0 голоса
    Рейтинг статьи
    Ссылка на основную публикацию
    ВсеИнструменты 220 Вольт