What the Error Means (Auth Rejected)
Nine times out of ten it is a password Gmail refuses. The fix sequence:
- Enable 2-Step Verification on the Google account holding the mailbox — App Passwords require it.
- Generate an App Password — Google Account → Security → App Passwords; copy the 16-character code.
- Use it in WHMCS — System Settings → General Settings → Mail: SMTP host smtp.gmail.com, port 587 with STARTTLS, username the full address, password the App Password.
- Send a test email — same screen, Send Test Email; WHMCS logs the true SMTP conversation in the Activity Log.
For cPanel-hosted mail instead of Gmail: host mail.yourdomain.com, port 465 SSL, the mailbox's own password — full settings table below.
Cause 1: Password Logins Blocked (Use an App Password)
Two practical notes on WHMCS: it interacts directly with caching and database response, and misconfiguration is the most common cause of 'hosting is slow' tickets. WebJi® support checks it as part of standard migrations.

Correct SMTP Settings Table (Gmail, Workspace, cPanel Mail)
Send through authenticated SMTP on port 587 (STARTTLS) or 465 (SSL), using the full mailbox as the username. Port 25 is often blocked on home and office networks, which is why the same account works in webmail and fails in Outlook. Match the From address to the mailbox or the message will be rejected or spammed.
Cause 2: Wrong Port and Encryption Combo
How this plays out with Gmail app passwords: settings that look cosmetic usually decide page speed and uptime under real traffic. The defaults WebJi® ships are tuned for Indian network conditions, and support can review your setup on request.
Cause 3: Host Blocking Outbound SMTP (Port 25)
Many shared and reseller servers block port 25 outright as anti-spam policy, and some throttle it — WHMCS configured for plain port 25 fails with connection errors before authentication even begins.
The fixes, in order:
- Switch to the submission ports — 587 with STARTTLS or 465 with implicit SSL; both are the legitimate client ports and rarely blocked.
- Use an authenticated external relay — Gmail, Workspace or a transactional service sidesteps the host's port politics entirely and improves invoice deliverability (billing emails are the ones customers must receive).
- Ask the host to unblock — legitimate use gets port 25 opened on request with VPS plans where you control the mail reputation.
Authentication, ports and relays covered, the settings table is the copy-paste reference for the three senders WHMCS installs actually use.
Testing: WHMCS Email Debug and Logs
Two practical notes on TLS/SSL encryption: it interacts directly with caching and database response, and misconfiguration is the most common cause of 'hosting is slow' tickets. WebJi® support checks it as part of standard migrations.
Deliverability: SPF and DKIM for Billing Emails
Two practical notes on SMTP host settings: it interacts directly with caching and database response, and misconfiguration is the most common cause of 'hosting is slow' tickets. WebJi® support checks it as part of standard migrations.
Frequently Asked Questions
How do I fix the WHMCS SMTP error could not authenticate?
Use it in WHMCS — System Settings → General Settings → Mail: SMTP host smtp.gmail.com, port 587 with STARTTLS, username the full address, password the App Password.
Why does WHMCS email fail with Gmail?
Use it in WHMCS — System Settings → General Settings → Mail: SMTP host smtp.gmail.com, port 587 with STARTTLS, username the full address, password the App Password. The question here is: Why does WHMCS email fail with Gmail.
What SMTP settings should WHMCS use?
Use it in WHMCS — System Settings → General Settings → Mail: SMTP host smtp.gmail.com, port 587 with STARTTLS, username the full address, password the App Password. The question here is: What SMTP settings should WHMCS use.
How do I create a Gmail app password for WHMCS?
Use it in WHMCS — System Settings → General Settings → Mail: SMTP host smtp.gmail.com, port 587 with STARTTLS, username the full address, password the App Password. The question here is: How do I create a Gmail app password for WHMCS.
Which port for WHMCS SMTP: 587 or 465?
Use it in WHMCS — System Settings → General Settings → Mail: SMTP host smtp.gmail.com, port 587 with STARTTLS, username the full address, password the App Password. The question here is: Which port for WHMCS SMTP: 587 or 465.
Why are WHMCS invoices not sending?
Yes. Every WebJi® invoice is in INR and shows GST at 18%, so a registered business can claim input credit. Add your GSTIN in the client area before payment if you need it on the invoice. Prices in the tables are exclusive of GST. For a copy of an old invoice, email support@webji.services or open a billing ticket at https://billing.webji.in/submitticket.php?step=2&deptid=10.
Is WebJi® an Indian company?
Yes. WebJi® is headquartered in Jaipur, Rajasthan and has operated since 2005. Billing, support and governance all run from India.
Do you provide GST invoices?
Every purchase and renewal gets a GST invoice with our GSTIN, and hosting prices are quoted exclusive of 18% GST. Claim input credit as applicable.

