Menu

#7 550 Bad HELO - Host impersonating

1.0
closed
None
2025-01-07
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

  • Andy Prevost (CodeworxTech)

    • status: open --> closed
     
  • Andy Prevost (CodeworxTech)

    Very creative, looking into it for a permanent fix.

     
  • Andy Prevost (CodeworxTech)

    Solution:
    Not sure of exact line number, but look for this line (around 1972):
    $server_arr = [$this->smtpDomain];
    and above it, add:
    $this->smtpHost = $this->smtpDomain;
    Andy

     

Log in to post a comment.

MongoDB Logo MongoDB