I have my gmail smtp set up the following:
smtp.gmail.com
port: 465 or 587 (tried them both)
security: TLS or SSL (tried them both)
IMAP is enabled on gmail end and so is POP mail.
I get this error everytime:
Email Sending Failed : SMTP connect() failed. TroubleshootingSMTP · PHPMailer/PHPMailer Wiki · GitHub server error: QUIT command failed.
I visited the github buts its just a bunch of code so no idea what to do with all that.
Tried hotmail as well same result.
Anyone ran into this on inital setup?
Where can i start to look for solutions?
Hi @sigep190156
Can you run a successful telnet from your server to smtp.gmail.com through either of the ports mentioned above?
When I run:
telnet smtp.gmail.com 587
220 smtp.gmail.com ESMTP v186-20020a0dd3c3000000b006045f5583fesm1332224ywd.16 - gsmtp
When i run:
telnet smtp-mail.outlook.com 587
220 BN1PR12CA0016.outlook.office365.com Microsoft ESMTP MAIL Service ready at Mon, 12 Feb 2024 20:01:12 +0000
Tracing route to smtp.gmail.com [2607:f8b0:4024:c09::6c]
over a maximum of 30 hops:
1 8 ms 4 ms 6 ms 2601:3c6:8100:269::1
2 56 ms 17 ms 23 ms 2001:558:40b0:1a::1
3 15 ms 36 ms 22 ms po-301-1203-rur01.oakland.tn.malt.comcast.net [2001:558:92:9d::1]
4 28 ms 14 ms 16 ms po-2-rur02.oakland.tn.malt.comcast.net [2001:558:90:26e::2]
5 25 ms * 21 ms be-102-ar01.hornlake.tn.malt.comcast.net [2001:558:90:117::1]
6 55 ms 26 ms 38 ms be-34932-cs03.dallas.tx.ibone.comcast.net [2001:558:3:9de::1]
7 34 ms 36 ms 35 ms be-3312-pe12.1950stemmons.tx.ibone.comcast.net [2001:558:3:9a::2]
8 30 ms 32 ms 42 ms 2001:559:0:8::42
9 27 ms 27 ms 42 ms 2607:f8b0:8327::1
10 37 ms 29 ms 36 ms 2001:4860:0:1::5696
11 26 ms 31 ms 64 ms 2001:4860:0:11e3::2
12 43 ms 45 ms 51 ms 2001:4860::c:4001:e55b
13 46 ms 43 ms 45 ms 2001:4860::c:4002:17b1
14 48 ms 45 ms 53 ms 2001:4860::c:4002:8e6c
15 93 ms 44 ms 50 ms 2001:4860::c:4002:ac21
16 45 ms 42 ms 55 ms 2001:4860::cc:4002:a8e4
17 43 ms 58 ms 44 ms 2001:4860:0:1::3eaf
18 * * * Request timed out.
19 * * * Request timed out.
20 * * * Request timed out.
21 * * * Request timed out.
22 * * * Request timed out.
23 * * * Request timed out.
24 * * * Request timed out.
25 * * * Request timed out.
26 * * * Request timed out.
27 * * * Request timed out.
28 * * * Request timed out.
29 97 ms 44 ms 46 ms mg-in-f108.1e100.net [2607:f8b0:4024:c09::6c]
I actually figured it out using this website. I takes you line by line through the process and it was failing because it needed an app specific password. So you just have to go in to myaccount.google.com | security | 2 factor authentication | scroll down to the bottom and create a new APP password. This will save someone alot of frustration in the future!
You can also find that in our existing support documentation.
This document for the Gmail connection no longer works and needs updated. You have to use this method or it will not connect:
So you just have to go in to myaccount.google.com | security | 2 factor authentication | scroll down to the bottom and create a new APP password. Please update this documentation I used Port 587 and TLS and it worked.
I could not get it to work on Port 465 with SSL or TLS.
@sigep190156 i appreciate the feedback and will update the documentation appropriately.