youds
Verified User
Hello!
I am able to send email via PHP to email accounts registered on the server code is executed from but to iCloud and gmail nothing arrives. I get the following output from PHPMailer:
I can't find anywhere in `/var/log/exim` any trace of the email. If I use mail() then I can see in `/home/project/.php/php-mail.log` the mail being sent but no error and nothing arrives. I've tried from my local dev server using standard mail functionality but nothing works, unless I send locally.
I remember having this problem many years ago but can't trace the fix from Google.
Any ideas what this could be?
I am able to send email via PHP to email accounts registered on the server code is executed from but to iCloud and gmail nothing arrives. I get the following output from PHPMailer:
2025-01-08 15:07:44 SERVER -> CLIENT: 220 server2.uk.gethosted.online ESMTP Exim 4.98 Wed, 08 Jan 2025 15:07:44 +0000
2025-01-08 15:07:44 CLIENT -> SERVER: EHLO 01.youds.dev
2025-01-08 15:07:44 SERVER -> CLIENT: 250-server2.uk.gethosted.online Hello 01.youds.dev [63.135.75.90]250-SIZE 52428800250-LIMITS MAILMAX=100 RCPTMAX=150250-8BITMIME250-PIPELINING250-PIPECONNECT250-AUTH PLAIN LOGIN250 HELP
2025-01-08 15:07:44 CLIENT -> SERVER: AUTH LOGIN
2025-01-08 15:07:44 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2025-01-08 15:07:44 CLIENT -> SERVER: [credentials hidden]
2025-01-08 15:07:44 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2025-01-08 15:07:44 CLIENT -> SERVER: [credentials hidden]
2025-01-08 15:07:44 SERVER -> CLIENT: 235 Authentication succeeded
2025-01-08 15:07:44 CLIENT -> SERVER: MAIL FROM:<support@****.com>
2025-01-08 15:07:44 SERVER -> CLIENT: 250 OK
2025-01-08 15:07:44 CLIENT -> SERVER: RCPT TO:<[email protected]>
2025-01-08 15:07:44 SERVER -> CLIENT: 250 Accepted
2025-01-08 15:07:44 CLIENT -> SERVER: DATA
2025-01-08 15:07:44 SERVER -> CLIENT: 354 Enter message, ending with "." on a line by itself
2025-01-08 15:07:44 CLIENT -> SERVER: Date: Wed, 8 Jan 2025 15:07:44 +0000
2025-01-08 15:07:44 CLIENT -> SERVER: To: macen <[email protected]>
2025-01-08 15:07:44 CLIENT -> SERVER: From: ***** <support@*****.com>
2025-01-08 15:07:44 CLIENT -> SERVER: Reply-To: ***** NO-REPLY <no-reply@*****.com>
2025-01-08 15:07:44 CLIENT -> SERVER: Subject: Here is the subject
2025-01-08 15:07:44 CLIENT -> SERVER: Message-ID: <[email protected]>
2025-01-08 15:07:44 CLIENT -> SERVER: X-Mailer: PHPMailer 6.9.3 (https://github.com/PHPMailer/PHPMailer)
2025-01-08 15:07:44 CLIENT -> SERVER: MIME-Version: 1.0
2025-01-08 15:07:44 CLIENT -> SERVER: Content-Type: multipart/alternative;
2025-01-08 15:07:44 CLIENT -> SERVER: boundary="b1=_W4FqdzKxDoAaDk7LHZrFFhWc6izTepdq947Ug2X6N8"
2025-01-08 15:07:44 CLIENT -> SERVER: Content-Transfer-Encoding: 8bit
2025-01-08 15:07:44 CLIENT -> SERVER:
2025-01-08 15:07:44 CLIENT -> SERVER: --b1=_W4FqdzKxDoAaDk7LHZrFFhWc6izTepdq947Ug2X6N8
2025-01-08 15:07:44 CLIENT -> SERVER: Content-Type: text/plain; charset=us-ascii
2025-01-08 15:07:44 CLIENT -> SERVER:
2025-01-08 15:07:44 CLIENT -> SERVER: This is the body in plain text for non-HTML mail clients
2025-01-08 15:07:44 CLIENT -> SERVER:
2025-01-08 15:07:44 CLIENT -> SERVER: --b1=_W4FqdzKxDoAaDk7LHZrFFhWc6izTepdq947Ug2X6N8
2025-01-08 15:07:44 CLIENT -> SERVER: Content-Type: text/html; charset=us-ascii
2025-01-08 15:07:44 CLIENT -> SERVER:
2025-01-08 15:07:44 CLIENT -> SERVER: This is the HTML message body <b>in bold!</b>
2025-01-08 15:07:44 CLIENT -> SERVER:
2025-01-08 15:07:44 CLIENT -> SERVER:
2025-01-08 15:07:44 CLIENT -> SERVER: --b1=_W4FqdzKxDoAaDk7LHZrFFhWc6izTepdq947Ug2X6N8--
2025-01-08 15:07:44 CLIENT -> SERVER:
2025-01-08 15:07:44 CLIENT -> SERVER: .
2025-01-08 15:07:45 SERVER -> CLIENT: 250 OK id=1tVXeq-000000095LV-41tR
2025-01-08 15:07:45 CLIENT -> SERVER: QUIT
2025-01-08 15:07:45 SERVER -> CLIENT: 221 server2.uk.gethosted.online closing connection
Message has been sent
I can't find anywhere in `/var/log/exim` any trace of the email. If I use mail() then I can see in `/home/project/.php/php-mail.log` the mail being sent but no error and nothing arrives. I've tried from my local dev server using standard mail functionality but nothing works, unless I send locally.
I remember having this problem many years ago but can't trace the fix from Google.
Any ideas what this could be?