Posted - 06/28/2025 : 20:00:56
Subject: Email Sending/Receiving Issue on Hostinger – Order Notifications Not Working
Hello everyone,
I am experiencing difficulties with sending and receiving order emails on my website hosted with Hostinger. The system is generating invoices correctly; however, no emails are being delivered to either the admin or customers.
Here are some details about my setup:
Hosting provider: Hostinger.com
Current PHP version: 7.8.4
Debug mode: Enabled
Error logs: (Please find the attached/error log below for your review.)
I would appreciate your help in identifying and resolving this issue.
Thank you!
Hostinger SMTP and vsadmin email setting Info =====================
Store email: saif@eformics.com Email from: Eformics Order Email SMTP Service: Use PHP Mailer SMTP Username: saif@eformics.com SMTP Password: entered and set to yes SMTP Host: smtp.hostinger.com SMTP Port: 465 or 587 SMTP secure: SSL Email Format: HTML
emailtofriend.php is uploaded to the root.
include.php setting: =========================
// Email Options $useaskaquestion=TRUE; $useemailfriend=TRUE; $htmlemails=TRUE;
Error log after generating the invoice on thanks.php page ========================================================== POST parameters POST: emailorder : 511 POST: thesessionid : 038c69aa9d058339f17ec307fb GET parameters 2025-06-29 02:35:57 SERVER -> CLIENT: 220 ESMTP smtp.hostinger.com 2025-06-29 02:35:57 CLIENT -> SERVER: EHLO eformics.com 2025-06-29 02:35:57 SERVER -> CLIENT: 250-smtp.hostinger.com250-PIPELINING250-SIZE 48811212250-ETRN250-AUTH PLAIN LOGIN250-ENHANCEDSTATUSCODES250-8BITMIME250-DSN250 CHUNKING 2025-06-29 02:35:57 CLIENT -> SERVER: AUTH LOGIN 2025-06-29 02:35:57 SERVER -> CLIENT: 334 VXNlcm5hbWU6 2025-06-29 02:35:57 CLIENT -> SERVER: [credentials hidden] 2025-06-29 02:35:58 SERVER -> CLIENT: 334 UGFzc3dvcmQ6 2025-06-29 02:35:58 CLIENT -> SERVER: [credentials hidden] 2025-06-29 02:36:00 SERVER -> CLIENT: 535 5.7.8 Error: authentication failed: (reason unavailable) 2025-06-29 02:36:00 SMTP ERROR: Password command failed: 535 5.7.8 Error: authentication failed: (reason unavailable) SMTP Error: Could not authenticate. 2025-06-29 02:36:00 CLIENT -> SERVER: QUIT 2025-06-29 02:36:00 SERVER -> CLIENT: 221 2.0.0 Bye SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting Failed to send mail: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting2025-06-29 02:36:00 SERVER -> CLIENT: 220 ESMTP smtp.hostinger.com 2025-06-29 02:36:00 CLIENT -> SERVER: EHLO eformics.com 2025-06-29 02:36:00 SERVER -> CLIENT: 250-smtp.hostinger.com250-PIPELINING250-SIZE 48811212250-ETRN250-AUTH PLAIN LOGIN250-ENHANCEDSTATUSCODES250-8BITMIME250-DSN250 CHUNKING 2025-06-29 02:36:00 CLIENT -> SERVER: AUTH LOGIN 2025-06-29 02:36:01 SERVER -> CLIENT: 334 VXNlcm5hbWU6 2025-06-29 02:36:01 CLIENT -> SERVER: [credentials hidden] 2025-06-29 02:36:01 SERVER -> CLIENT: 334 UGFzc3dvcmQ6 2025-06-29 02:36:01 CLIENT -> SERVER: [credentials hidden] 2025-06-29 02:36:03 SERVER -> CLIENT: 535 5.7.8 Error: authentication failed: (reason unavailable) 2025-06-29 02:36:03 SMTP ERROR: Password command failed: 535 5.7.8 Error: authentication failed: (reason unavailable) SMTP Error: Could not authenticate. 2025-06-29 02:36:03 CLIENT -> SERVER: QUIT 2025-06-29 02:36:03 SERVER -> CLIENT: 221 2.0.0 Bye SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting Failed to send mail: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
|