Get an authorization code
Enable IMAP/SMTP
Sign in to NetEase Mail web → Settings → POP3/SMTP/IMAP, and enable IMAP/SMTP Service.
163 Mail
| Protocol | Server | Port | Encryption |
|---|---|---|---|
| IMAP | imap.163.com | 993 | SSL/TLS |
| SMTP | smtp.163.com | 465 | SSL/TLS |
- Username: Full 163 address (e.g.
name@163.com) - Password: Authorization code
126 Mail
| Protocol | Server | Port | Encryption |
|---|---|---|---|
| IMAP | imap.126.com | 993 | SSL/TLS |
| SMTP | smtp.126.com | 465 | SSL/TLS |
- Username: Full 126 address (e.g.
name@126.com) - Password: Authorization code
163 and 126 are separate account systems with different server hostnames. Use the settings that match your email domain suffix.
Frequently asked questions
Which NetEase email domains are supported?
Which NetEase email domains are supported?
163.com, 126.com, yeah.net, and NetEase Enterprise Mail (qiye.163.com) all use the same authorization-code flow. Use the IMAP/SMTP hosts that match the address suffix (
imap.163.com for 163, imap.126.com for 126).Why does my IMAP keep getting blocked?
Why does my IMAP keep getting blocked?
NetEase requires SMS verification the first time you turn on IMAP and again periodically. Check Settings → POP3/SMTP/IMAP for any verification prompt or expired authorization code.

