For Zoho Mail, use smtp.zoho.com (personal and free accounts) or smtppro.zoho.com (paid accounts on your own domain), port 465 with SSL or 587 with TLS, and your full email address. For Yahoo Mail, use smtp.mail.yahoo.com on port 465 or 587 with your full address and an app password. Details and fixes for each are below.
Zoho Mail SMTP settings
| Setting | Personal or free organization | Paid organization (your domain) |
|---|---|---|
| SMTP server | smtp.zoho.com |
smtppro.zoho.com |
| Port with SSL | 465 | 465 |
| Port with TLS | 587 | 587 |
| Authentication | Required | Required |
| Username | Full address, for example you@zohomail.com |
Full address, for example you@yourdomain.com |
| Password | Account password, or an application-specific password if 2FA is on | Same |
Source: Zoho’s SMTP configuration help.
Zoho data centers: .com, .eu, .in and others
Zoho runs separate data centers, and an account lives in one of them. Accounts outside the US data center use a matching regional host, for example smtp.zoho.eu for European accounts and smtp.zoho.in for Indian accounts, with the same ports.
The simplest way to confirm yours: look at the address you sign in at. If it is mail.zoho.eu, your SMTP host ends in .eu. Zoho also shows the exact server for your account under Settings, Mail Accounts, Server Configuration Details, and its help page tells you to use that section as the source of truth.
Zoho SMTP rules that trip people up
- The From address must match. Zoho only lets you send as the account you logged in with or one of its aliases. Sending as another address fails.
- Two-factor authentication needs an app password. If 2FA is on, generate an application-specific password in Zoho Accounts and use it as the SMTP password.
- Paid domain accounts use smtppro. Using
smtp.zoho.comfor a paid domain account is a common cause of “authentication failed.”
Yahoo Mail SMTP settings
| Setting | Value |
|---|---|
| SMTP server | smtp.mail.yahoo.com |
| Port | 465 (SSL) or 587 (TLS) |
| Requires SSL | Yes |
| Requires TLS | Yes, if available |
| Authentication | Required |
| Username | Your full Yahoo address |
| Password | An app password |
Source: Yahoo’s IMAP and SMTP server settings.
Generate a Yahoo app password
Yahoo does not accept your normal password from third-party mail apps over SMTP. To create an app password:
- Sign in to your Yahoo account and open Account security.
- Choose Generate app password (sometimes listed under “Other ways to sign in”).
- Give it a name, such as “Thunderbird” or “Website form,” and generate it.
- Paste the code into your app’s SMTP password field.
Yahoo shows the code once. If you lose it, delete it and create another.
Example: sending through Zoho or Yahoo from Python
The same smtplib code works for both. Only the host and credentials change.
import os, smtplib
from email.message import EmailMessage
msg = EmailMessage()
msg["From"] = "you@yourdomain.com" # must be the account or an alias
msg["To"] = "sam@example.com"
msg["Subject"] = "Test via SMTP"
msg.set_content("It works.")
# Zoho paid domain account; use smtp.zoho.com, smtp.zoho.eu or smtp.mail.yahoo.com as needed
with smtplib.SMTP_SSL("smtppro.zoho.com", 465) as s:
s.login("you@yourdomain.com", os.environ["SMTP_PASSWORD"])
s.send_message(msg)
For port 587, use smtplib.SMTP(host, 587), then call s.starttls() before s.login(...). Using SMTP_SSL on 587 or plain SMTP on 465 makes the connection hang or fail with an SSL error. The SMTP ports guide explains why.
Using Zoho or Yahoo SMTP in WordPress and other apps
Most apps, including WordPress SMTP plugins, Ghost and help desk tools, ask for the same five fields. For a paid Zoho domain account they look like this:
| Field | Value |
|---|---|
| SMTP host | smtppro.zoho.com (or your regional host) |
| Encryption | SSL on 465, or TLS on 587 |
| Username | you@yourdomain.com |
| Password | Your password, or an app-specific password if 2FA is on |
| From address | The same address, or one of its aliases |
For Yahoo, swap in smtp.mail.yahoo.com, your Yahoo address and a Yahoo app password. Send a test message from the plugin before you rely on it, and check that it arrives in the inbox rather than spam.
Common errors and fixes
| Symptom | Likely cause | Fix |
|---|---|---|
535 Authentication Failed on Zoho |
Wrong host, or 2FA without an app password | Check smtp vs smtppro and the region; use an app-specific password |
553 “sender is not allowed to relay” on Zoho |
From address is not the account or an alias | Send from the logged-in address, or add the alias in Zoho |
535 or “Invalid credentials” on Yahoo |
Normal password used | Generate a Yahoo app password |
| Connection hangs, then times out | SSL/port mismatch or a blocked port | Pair 465 with SSL, 587 with TLS; test both |
Sending limits and when to move on
Both Zoho and Yahoo are mailbox services. They limit how much one account can send and watch for patterns that look like bulk mail, and they do not publish per-message delivery events. That is fine for a person’s mail client or a contact form that sends a few messages a day.
For app email, use a provider built for it. Mailcandor’s SMTP relay works with the same smtplib code: set the host to smtp.mailcandor.com, the username to mailcandor and the password to an API key, then send from any address on a domain you have verified with SPF and DKIM. Bounces and spam complaints come back per message, and your Zoho or Yahoo inbox keeps its own reputation. If you prefer Gmail, the Gmail SMTP settings guide has the equivalent table.