Step 1: Load .env

✅ .env found at: /home/u721439885/domains/backend.petitefille.com.au/public_html/petite-backend/payment/../.env

✅ Dotenv loaded successfully

Step 2: ENV Variables (PETITE_ keys)

KeyValueStatus
PETITE_SMTP_HOST ✅ smtp.hostinger.com OK
PETITE_SMTP_PORT ✅ 465 OK
PETITE_SMTP_SECURE ✅ ssl OK
PETITE_GMAIL_ADDRESS ✅ info@petitefille.com.au OK
PETITE_GMAIL_APP_PASSWORD ✅ SET (19 chars, starts: rmou-w…) OK
PETITE_FROM_EMAIL ✅ info@petitefille.com.au OK
PETITE_FROM_NAME ✅ PetiteFille eGiftCard OK
PETITE_FRONTEND_URL ✅ https://petitefille.com.au OK
PETITE_BACKEND_URL ✅ https://backend.petitefille.com.au OK
STRIPE_SECRET_KEY ✅ SET (107 chars, starts: sk_liv…) OK

✅ All env vars present

Step 3: SMTP Connection Test

Connection: opening to ssl://smtp.hostinger.com:465, timeout=300, options=array()
Connection: opened
SERVER -> CLIENT: 220 ESMTP smtp.hostinger.com
CLIENT -> SERVER: EHLO www.backend.petitefille.com.au
SERVER -> CLIENT: 250-smtp.hostinger.com
250-PIPELINING
250-SIZE 48811212
250-ETRN
250-AUTH PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250 CHUNKING
CLIENT -> SERVER: AUTH LOGIN
SERVER -> CLIENT: 334 VXNlcm5hbWU6
CLIENT -> SERVER: [credentials hidden]
SERVER -> CLIENT: 334 UGFzc3dvcmQ6
CLIENT -> SERVER: [credentials hidden]
SERVER -> CLIENT: 235 2.7.0 Authentication successful

✅ SMTP connected and authenticated successfully!

CLIENT -> SERVER: QUIT
SERVER -> CLIENT: 221 2.0.0 Bye
Connection: closed

Step 4: Send Test Email

SERVER -> CLIENT: 220 ESMTP smtp.hostinger.com
CLIENT -> SERVER: EHLO www.backend.petitefille.com.au
SERVER -> CLIENT: 250-smtp.hostinger.com
250-PIPELINING
250-SIZE 48811212
250-ETRN
250-AUTH PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250 CHUNKING
CLIENT -> SERVER: AUTH LOGIN
SERVER -> CLIENT: 334 VXNlcm5hbWU6
CLIENT -> SERVER: [credentials hidden]
SERVER -> CLIENT: 334 UGFzc3dvcmQ6
CLIENT -> SERVER: [credentials hidden]
SERVER -> CLIENT: 235 2.7.0 Authentication successful
CLIENT -> SERVER: MAIL FROM:<info@petitefille.com.au>
SERVER -> CLIENT: 250 2.1.0 Ok
CLIENT -> SERVER: RCPT TO:<iamkbr12@gmail.com>
SERVER -> CLIENT: 250 2.1.5 Ok
CLIENT -> SERVER: DATA
SERVER -> CLIENT: 354 End data with <CR><LF>.<CR><LF>
CLIENT -> SERVER: Date: Sat, 10 Oct 2026 13:55:33 +0000
CLIENT -> SERVER: To: iamkbr12@gmail.com
CLIENT -> SERVER: From: PetiteFille eGiftCard <info@petitefille.com.au>
CLIENT -> SERVER: Subject: =?UTF-8?Q?PHPMailer_test_=E2=9C=85?=
CLIENT -> SERVER: Message-ID: <uBtaixYF94RDVnR5mpZ5SKHmqQkcU5Bsx58WKibIDc@www.backend.petitefille.com.au>
CLIENT -> SERVER: X-Mailer: PHPMailer 7.0.2 (https://github.com/PHPMailer/PHPMailer)
CLIENT -> SERVER: MIME-Version: 1.0
CLIENT -> SERVER: Content-Type: multipart/alternative;
CLIENT -> SERVER:  boundary="b1=_uBtaixYF94RDVnR5mpZ5SKHmqQkcU5Bsx58WKibIDc"
CLIENT -> SERVER: Content-Transfer-Encoding: 8bit
CLIENT -> SERVER: 
CLIENT -> SERVER: --b1=_uBtaixYF94RDVnR5mpZ5SKHmqQkcU5Bsx58WKibIDc
CLIENT -> SERVER: Content-Type: text/plain; charset=us-ascii
CLIENT -> SERVER: 
CLIENT -> SERVER: PHPMailer is working correctly! Your gift card emails will now send.
CLIENT -> SERVER: 
CLIENT -> SERVER: --b1=_uBtaixYF94RDVnR5mpZ5SKHmqQkcU5Bsx58WKibIDc
CLIENT -> SERVER: Content-Type: text/html; charset=us-ascii
CLIENT -> SERVER: 
CLIENT -> SERVER: <p>PHPMailer is <strong>working correctly</strong>! Your gift card emails will now send.</p>
CLIENT -> SERVER: 
CLIENT -> SERVER: 
CLIENT -> SERVER: --b1=_uBtaixYF94RDVnR5mpZ5SKHmqQkcU5Bsx58WKibIDc--
CLIENT -> SERVER: 
CLIENT -> SERVER: .
SERVER -> CLIENT: 250 2.0.0 Ok: queued as 4j24xf0T6lz1xmB
CLIENT -> SERVER: QUIT
SERVER -> CLIENT: 221 2.0.0 Bye

✅ Email sent to iamkbr12@gmail.com — check your inbox (and spam folder)

Step 5: Server Info

PHP version8.3.35
SMTP (php.ini)localhost
sendmail_path/usr/sbin/hsendmail -t
disable_functionssystem, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
__DIR__/home/u721439885/domains/backend.petitefille.com.au/public_html/petite-backend/payment

⚠️ DELETE this file from your server after debugging!