If you want to add an alias to send an email from a different email address. You might end up following this tutorial:
But you might encounter this issue: [AUTH] Application-specific password required.
This issue happens if you setup Two factor authentication (which you should) for the other email. In this case, you need to follow this tutorial:
The idea is you need to create an app password then use the app password to authenticate, instead of using the password directly.
I just copy the content in case of the above link is not accessible, or you just don't want to visit it 😂.
Step 1: Generate your app password
- On your computer, go to your Google Account.
- At the left, click Security.
- Under "Signing in to Google," click App passwords and sign in, if required. If you don't find "App passwords," click 2-Step Verification and follow the steps to turn on 2-step verification 1. for your account. You may have to sign in again.
- Under “App passwords,” click Select app and then Mail.
- Click Select device and then Other.
- Enter the name of your domain and click Generate.
- From the app password box, copy the 16 character password generated. You'll need this address when you add your new send-as (forwarded) account (in Step 2 below).
Step 2: Add an email alias
- On your computer, go to Gmail.
- At the top right, click Settings => Settings.
- Select the Accounts and import or Accounts tab.
- In the "Send mail as," click Add another email address.
- In the window that opens, enter the name you want recipients to view.
- Enter the email address alias you’ve set up for email forwarding.
- Confirm that "Treat as an alias" is marked, and click Next step.
- In the "SMTP Server" field, enter:
smtp.gmail.com
. - From the "Port" menu, choose 587.
- In the "Username" field, enter the username you're signed in with.
- In the "Password" field, enter the 16-character generated app password that you copied in Step 1.
- Confirm that the Secured connection using TLS box is marked.
- Click Add account.
Step 3: Confirm the address
- On your computer, go to Gmail.
- Open the confirmation message you received from Gmail.
- Click the link.
Step 4: Change the "From" address
- In your message, click the "From" line.
- If you don't find the "From" line, click the space next to the recipient’s email.
- Select the address to send from.
I hope this note helps you save some time. Thanks