Menu

#7 550 Bad HELO - Host impersonating

1.0
open
None
2024-08-09
2024-08-09
Dennis Wong
No

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);

Discussion


Log in to post a comment.