SmtpMailer – 503 5.5.2 Send hello first FIX
- Failips
- Member | 54
Hi, when sending mailes using SmtpMailer (from smtp.office365.com) I used to get exception “Can't start with STARTTLS – 503 5.5.2 Send hello first…”. I fixed it adding this line of code to SmtpMailer class on line 158 before setting tls in connect function.
$this->write("HELO $this->clientHost", 250);
Code now looks like this:
- David Matějka
- Moderator | 6445
Hi,
recently there were several attempts to fix this:
Please try latest version of nette/mail (3.1.4)