SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
2018-09-13 17:29:28 Connection: opening to smtp.gmail.com:587, timeout=300, options=array ( 'ssl' => array ( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true, ),)
2018-09-13 17:29:28 Connection: opened
2018-09-13 17:29:29 SMTP INBOUND: "220 smtp.gmail.com ESMTP 124-v6sm8029981wmk.20 - gsmtp"
2018-09-13 17:29:29 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP 124-v6sm8029981wmk.20 - gsmtp
2018-09-13 17:29:29 CLIENT -> SERVER: EHLO 192.168.1.100
2018-09-13 17:29:29 SMTP INBOUND: "250-smtp.gmail.com at your service, [196.201.81.144]"
2018-09-13 17:29:29 SMTP INBOUND: "250-SIZE 35882577"
2018-09-13 17:29:29 SMTP INBOUND: "250-8BITMIME"
2018-09-13 17:29:29 SMTP INBOUND: "250-STARTTLS"
2018-09-13 17:29:29 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2018-09-13 17:29:29 SMTP INBOUND: "250-PIPELINING"
2018-09-13 17:29:29 SMTP INBOUND: "250 SMTPUTF8"
2018-09-13 17:29:29 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [196.201.81.144]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250 SMTPUTF8
2018-09-13 17:29:29 CLIENT -> SERVER: STARTTLS
2018-09-13 17:29:29 SMTP INBOUND: "220 2.0.0 Ready to start TLS"
2018-09-13 17:29:29 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
2018-09-13 17:29:30 CLIENT -> SERVER: EHLO 192.168.1.100
2018-09-13 17:29:30 SMTP INBOUND: "250-smtp.gmail.com at your service, [196.201.81.144]"
2018-09-13 17:29:30 SMTP INBOUND: "250-SIZE 35882577"
2018-09-13 17:29:30 SMTP INBOUND: "250-8BITMIME"
2018-09-13 17:29:30 SMTP INBOUND: "250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH"
2018-09-13 17:29:30 SMTP INBOUND: "250-ENHANCEDSTATUSCODES"
2018-09-13 17:29:30 SMTP INBOUND: "250-PIPELINING"
2018-09-13 17:29:30 SMTP INBOUND: "250 SMTPUTF8"
2018-09-13 17:29:30 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [196.201.81.144]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250 SMTPUTF8
2018-09-13 17:29:30 Auth method requested: UNKNOWN
2018-09-13 17:29:30 Auth methods available on the server: LOGIN,PLAIN,XOAUTH2,PLAIN-CLIENTTOKEN,OAUTHBEARER,XOAUTH
2018-09-13 17:29:30 Requested auth method not available:
2018-09-13 17:29:30 Auth method selected: LOGIN
2018-09-13 17:29:30 CLIENT -> SERVER: AUTH LOGIN
2018-09-13 17:29:30 SMTP INBOUND: "334 VXNlcm5hbWU6"
2018-09-13 17:29:30 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2018-09-13 17:29:30 CLIENT -> SERVER: bXNhbm9nbzI0QGdtYWlsLmNvbQ==
2018-09-13 17:29:30 SMTP INBOUND: "334 UGFzc3dvcmQ6"
2018-09-13 17:29:30 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2018-09-13 17:29:30 CLIENT -> SERVER: VGVzdDEyMyo=
2018-09-13 17:29:30 SMTP INBOUND: "534-5.7.14 Please log in via"
2018-09-13 17:29:30 SMTP INBOUND: "534-5.7.14 your web browser and then try again."
2018-09-13 17:29:30 SMTP INBOUND: "534-5.7.14 Learn more at"
2018-09-13 17:29:30 SMTP INBOUND: "534 5.7.14 https://support.google.com/mail/answer/78754 124-v6sm8029981wmk.20 - gsmtp"
2018-09-13 17:29:30 SERVER -> CLIENT: 534-5.7.14 Please log in via534-5.7.14 your web browser and then try again.534-5.7.14 Learn more at534 5.7.14 https://support.google.com/mail/answer/78754 124-v6sm8029981wmk.20 - gsmtp
2018-09-13 17:29:30 SMTP ERROR: Password command failed: 534-5.7.14 Please log in via534-5.7.14 your web browser and then try again.534-5.7.14 Learn more at534 5.7.14 https://support.google.com/mail/answer/78754 124-v6sm8029981wmk.20 - gsmtp
SMTP Error: Could not authenticate.
2018-09-13 17:29:30 CLIENT -> SERVER: QUIT
2018-09-13 17:29:30 SMTP INBOUND: "221 2.0.0 closing connection 124-v6sm8029981wmk.20 - gsmtp"
2018-09-13 17:29:30 SERVER -> CLIENT: 221 2.0.0 closing connection 124-v6sm8029981wmk.20 - gsmtp
2018-09-13 17:29:30 Connection: closed
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Connection fails....
Check that user / password is a correct Google account (Google refuses anonymous mail sending)
Also check prerequisites for Google mail sending : they often change their policy, and I thing they require SSL connection.