Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted April 1, 20168 yr Just a couple days ago my website stopped sending emails for PM's and all that fancy stuff. I am using a gmail account to send emails. The error I am receiving is HELO (using: HELO)501 501-5.5.4 HELO/EHLO argument ssl://smtp.gmail.com:465 invalid, closing 501 5.5.4 connection. k139sm4490919ioe.42 - gsmtp I have tried tls://smtp.gmail.com:465 tls://smtp.gmail.com:587 tls://smtp.gmail.com ssl://smtp.gmail.com:465 ssl://smtp.gmail.com:587 ssl://smtp.gmail.com All with 465 and 587 ports. Override SMTP host Default is 'localhost' Revert Override SMTP port Default is 25 Revert Add '<' and '>' to 'to' and 'from' addresses YesNoSome SMTP mailers require that email addresses are in the following format '<' address '>' (no quotes). If you are getting errors in the mail error log, enabled this option Revert SMTP username Not required in most cases when using 'localhost' SMTP password Not required in most cases when using 'localhost' Enhanced SMTP HELO HELO EHLO Select which identification clause you need to use with your SMTP server.
April 1, 20168 yr It's definitly this....working just fine for me, hasn't changed in ages: Host: tls://smtp.gmail.com Port: 587 HELO: set to EHLO only.
April 1, 20168 yr Author When I use port 587 I get this in the email error log Could not open a socket to the SMTP server (0:)
April 1, 20168 yr Have you discussed with your host yet? Assuming that "Just a couple days ago" you've made no changes to cause this, then it would be a good idea to ask them if they've made any changes that could cause your server to be unable to communicate with tls://smtp.gmail.com on port 587,
April 1, 20168 yr Author I haven't said anything to the host yet. Wanted to verify that it wasn't my fault first. Nothing has changed on the website side of things.
April 1, 20168 yr Ok - next step is talk to host...if you've made no changes, then that's the logical step. My gmail set up is working fine, and I think the last time I changed things there was well over a year ago.
April 1, 20168 yr 7 hours ago, IndianaJoe said: I haven't said anything to the host yet. Wanted to verify that it wasn't my fault first. Nothing has changed on the website side of things. In classEmail.php, change this line: this->_smtpSendCmd( "{$this->smtp_helo} " . $this->smtp_host ); to this: $this->_smtpSendCmd( "{$this->smtp_helo} " . str_replace("tls://", "", $this->smtp_host) ); The email isn't being sent because Google is now rejecting the HELO message for having "tls://" in it, although in the IPBoard settings the "tls://" is needed to make the connection to Google's server in the first place. Going off the error message, I figured this was the problem and stripped "tls://" off the hostname. May not apply to newer versions of IPS.
April 5, 20168 yr On 4/1/2016 at 11:03 PM, Private55555 said: In classEmail.php, change this line: this->_smtpSendCmd( "{$this->smtp_helo} " . $this->smtp_host ); to this: $this->_smtpSendCmd( "{$this->smtp_helo} " . str_replace("tls://", "", $this->smtp_host) ); The email isn't being sent because Google is now rejecting the HELO message for having "tls://" in it, although in the IPBoard settings the "tls://" is needed to make the connection to Google's server in the first place. Going off the error message, I figured this was the problem and stripped "tls://" off the hostname. May not apply to newer versions of IPS. I've tested it and it seems to work fine, thanks!
April 6, 20168 yr Not sure if this will help anyone in the future that stumbles across this thread. I had been using ssl forever with gmail. About 7 days ago it stopped working. I changed it to tls in the settings in the ACP and it works fine now. Not sure why it changed but it was an easy fix.
Archived
This topic is now archived and is closed to further replies.