550 Bad HELO - Host impersonating
The Next Generation Mail Transport Class.
Brought to you by:
codeworxtech
Hi Andy,
thanks for this wonderful phpmailer pro which I can use in my php8.3
while I was testing it out (PHPMailerPro_v2024.1.3.0_21Mar2024), i found some issue, which you might need to fix
around line 2009 and line 2030, which try to send EHLO to mail server, it uses this
fwrite($this->smtpStream, 'EHLO ' . $this->smtpHost . self::CRLF);
for me, this will trigger mail server reply with 550 Bad HELO - Host impersonating, so I had changed to
this, which then can successfully send out the email
fwrite($this->smtpStream, 'EHLO ' . $this->hostname . self::CRLF);