SMTP Configuration Guide for Major Email Platforms (Step-by-Step)
When configuring SMTP for an AI email generation tool, the most confusing part is often "what exactly are my username and password?" — for most platforms, you cannot use your regular login password. Instead, you need to generate an App Password or Authorization Code. Below are the core SMTP settings and step-by-step instructions for each major platform.
Gmail
- SMTP Server:
smtp.gmail.com - Ports: 587 (STARTTLS) or 465 (SSL)
- Username: Your full Gmail address (e.g.,
you@gmail.com) - Password: App Password (not your Gmail login password)
⚠️ Google permanently disabled "Less Secure Apps" access on May 1, 2025 — regular passwords can no longer be used for SMTP connections. You must use an App Password or OAuth 2.0.
How to get an App Password:
- Ensure 2-Step Verification is enabled (go to myaccount.google.com/security)
- Visit myaccount.google.com/apppasswords
- Enter a name for the app (e.g., "SMTP Tool")
- Click "Create" — a 16-digit App Password will be generated — copy and save it immediately
💡 Select "Mail" as the app type, or choose "Other (custom name)". The 16-digit password has no spaces — don't add any when copying.
Detailed Tutorials:
Outlook / Microsoft 365
- SMTP Server:
smtp-mail.outlook.com(personal) orsmtp.office365.com(business) - Port: 587 (STARTTLS — the only supported configuration)
- Username: Your full email address
- Password: Email password (personal) or OAuth 2.0 (business)
⚠️ Microsoft disabled Basic Authentication in October 2022 — business Microsoft 365 accounts must use OAuth 2.0 Modern Auth. Personal Outlook.com accounts can still use passwords.
How to enable SMTP AUTH for business accounts:
- Log in to the Microsoft 365 admin center
- Go to "Users" → "Active Users" → select your username
- Click "Manage email apps" (under "Email apps")
- Enable "Authenticated SMTP"
💡 New Microsoft 365 tenants have SMTP AUTH disabled by default — an admin must enable it for each mailbox.
Detailed Tutorials:
- Outlook SMTP Settings: Server, Port & TLS
- Microsoft Official: How to set up a device to send email using Microsoft 365
Yahoo Mail
- SMTP Server:
smtp.mail.yahoo.com - Ports: 465 (SSL) or 587 (TLS)
- Username: Your full Yahoo email address
- Password: App Password (recommended) or your Yahoo password
How to get an App Password:
- Log in to your Yahoo account security page
- Find "App Passwords" or "App-specific passwords"
- Select "Generate password" and name the app
- Copy the generated password for SMTP authentication
Detailed Tutorials:
- Yahoo Official Help: POP access settings and instructions for Yahoo Mail
iCloud Mail
- SMTP Server:
smtp.mail.me.com - Port: 587 (TLS/STARTTLS)
- Username: Your full iCloud email address (e.g.,
you@icloud.com) - Password: App-Specific Password (not your Apple ID password)
⚠️ iCloud no longer allows direct use of your Apple ID password for SMTP authentication — you must use an App-Specific Password.
How to get an App-Specific Password:
- Log in to your Apple ID account page (appleid.apple.com)
- Go to "Security" → "App-Specific Passwords"
- Click "Generate Password", enter a name, and generate
- Copy the generated password for SMTP authentication
Detailed Tutorials:
- Apple Official Support: iCloud Mail server settings for other email client apps
QQ Mail
- SMTP Server:
smtp.qq.com - Port: 465 (SSL, recommended) or 587 (TLS)
- Username: Your full QQ email address
- Password: Authorization Code (not your QQ login password)
How to get the Authorization Code:
- Log in to QQ Mail web version (https://mail.qq.com)
- Click "Settings" → "Account" at the top
- Find the "POP3/IMAP/SMTP/Exchange/CardDAV/CalDAV Services" section
- Click "Enable" for IMAP/SMTP service and follow the SMS verification prompt
- After verification, a 16-digit authorization code will be displayed — copy and save it immediately (it only shows once)
⚠️ The authorization code is not your email password — it's a random 16-character alphanumeric string. If lost, you need to reset it in the settings, which will invalidate the old one.
Detailed Tutorials:
- How to get QQ Mail Authorization Code (Huawei official)
- 3 Steps to Enable QQ Mail SMTP (Tencent Cloud)
NetEase Mail (163 / 126)
- SMTP Server: 163 Mail
smtp.163.com; 126 Mailsmtp.126.com - Port: 465 (SSL)
- Username: Your full email address
- Password: Authorization Code (not your login password)
How to get the Authorization Code:
- Log in to 163 Mail web version (https://mail.163.com)
- Click "Settings" → "POP3/SMTP/IMAP" in the top-right corner
- Find the "POP3/SMTP Service" section and click "Enable"
- Complete SMS verification using your linked phone number
- After verification, a 16-digit authorization code will be displayed — copy and save it immediately
⚠️ The authorization code is displayed only once when you enable the service. If you forget it, go back to settings and click "Reset" to generate a new one.
Detailed Tutorials:
General Search Suggestions
If your email provider is not listed above, or the links above don't meet your needs, try these searches:
- Google Search: how to get SMTP authorization code for [your email]
- Google Search: [your email] SMTP server settings
Summary: For most email platforms, the SMTP "password" is not your regular login password — it's a specially generated Authorization Code or App Password. Keep this in mind when configuring your SMTP settings.
