Encrypted Posted March 13, 2019 Share Posted March 13, 2019 I have moved over to using G Suite for my domain email. I set up the MX records and everything is fine i can send and recieve from different accounts etc. I am trying to set this up within whmcs under the settings > Mail > using the following config Mail Type SMTP Mail Encoding 8bit SMTP Port 465 SMTP Host smpt.gmail.com SMTP Username email@mydomain.com SMTP Password mypasswordformynewemail I am getting the following error Email Sending Failed - SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (Subject: Confirm Your Registration) This is using G suite on my domain 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted March 14, 2019 Share Posted March 14, 2019 Hey @Encrypted The settings we recommend are: mail method --> SMTP PORT 465 host: smtp.gmail.com Type: SSL We've also found App Passwords need to be used So, you have to login to your G Suite account and click on MyAccount. Then go to Sign-In & Security, and under App Passwords, you will want to create a password there. It'll give you a password to use instead of your own password, so that it knows you are using an app connection. This thread should help 0 Quote Link to comment Share on other sites More sharing options...
n10s Posted February 25, 2020 Share Posted February 25, 2020 On 3/14/2019 at 2:53 AM, WHMCS ChrisD said: Hey @Encrypted The settings we recommend are: mail method --> SMTP PORT 465 host: smtp.gmail.com Type: SSL We've also found App Passwords need to be used So, you have to login to your G Suite account and click on MyAccount. Then go to Sign-In & Security, and under App Passwords, you will want to create a password there. It'll give you a password to use instead of your own password, so that it knows you are using an app connection. This thread should help Using these settings AND the App Password, I still get the following error... Email Sending Failed - SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (Subject: [Ticket ID: 895317] TEST) Any suggestions on where else to look or what measures to take? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted February 26, 2020 Share Posted February 26, 2020 1 hour ago, n10s said: Using these settings AND the App Password, I still get the following error... Email Sending Failed - SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (Subject: [Ticket ID: 895317] TEST) Any suggestions on where else to look or what measures to take? @n10s if you add the following line to your configuration.php file do you get any more detailed error outputs when sending an email? This will help try and identify where the issue is occurring. Personally, I use Office365 myself and in my case I've switched to using Postmark to send my WHMCS emails, they still are SPF & DKIM verified but its a much smoother process, that could be worth checking out too. 0 Quote Link to comment Share on other sites More sharing options...
Damo Posted February 26, 2020 Share Posted February 26, 2020 12 hours ago, n10s said: Email Sending Failed - SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (Subject: [Ticket ID: 895317] TEST) Do you have a firewall on the server? Check that port 465 is open. 0 Quote Link to comment Share on other sites More sharing options...
n10s Posted February 27, 2020 Share Posted February 27, 2020 19 hours ago, Damo said: Do you have a firewall on the server? Check that port 465 is open. Noob Reply: I'll pose that question to the Host Server Administrator, as I am currently without SSH access. I am a low-level, reseller-novice. Getting my WHMCS training by immersion and trial-by-fire. Thanx! 0 Quote Link to comment Share on other sites More sharing options...
n10s Posted February 27, 2020 Share Posted February 27, 2020 (edited) On 2/25/2020 at 6:05 PM, WHMCS ChrisD said: @n10s if you add the following line to your configuration.php file do you get any more detailed error outputs when sending an email? This will help try and identify where the issue is occurring. Personally, I use Office365 myself and in my case I've switched to using Postmark to send my WHMCS emails, they still are SPF & DKIM verified but its a much smoother process, that could be worth checking out too. I thought I had replied to this a day ago... user error. Anyhew... I am just adding the code you "suggested" (LOL). Added: $smtp_debug = true; to public_html/clients/configuration.php I then resent a verification email to a client(myself) gmail account. Not sure where I should see the debug report. BTW: Have done all of the setup over at Postmark and been verified on their system with updated DNS, etc. Edited February 27, 2020 by n10s 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted February 29, 2020 Share Posted February 29, 2020 @n10s With $smtp_debug added in your configuration.php file the SMTP Debug will show on the screen when you send an email it usually shows above your WHMCS screen 0 Quote Link to comment Share on other sites More sharing options...
n10s Posted March 1, 2020 Share Posted March 1, 2020 On 2/28/2020 at 8:10 PM, WHMCS ChrisD said: @n10s With $smtp_debug added in your configuration.php file the SMTP Debug will show on the screen when you send an email it usually shows above your WHMCS screen I still get nothing. OAN: would you be willing to share just HOW you configured your Postmark to work with WHMCS? I am still stuck at getting my email to work. I am communicating with both WHMCS support and my Web Host support. There seem to be more answers than solutions. I'm reaching out to ALL possible avenues of getting this resolved and my business UP! 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted March 1, 2020 Share Posted March 1, 2020 4 minutes ago, n10s said: 2 minutes ago, n10s said: I still get nothing. That is odd and almost seems to indicate you are not using SMTP if nothing is showing, are you using the default Blend Theme in the admin area? 4 minutes ago, n10s said: OAN: would you be willing to share just HOW you configured your Postmark to work with WHMCS? I am still stuck at getting my email to work. I am communicating with both WHMCS support and my Web Host support. There seem to be more answers than solutions. I'm reaching out to ALL possible avenues of getting this resolved and my business UP! If it's helpful to you the configuration I use is: Mail Type: SMTPMail Encoding: base64SMTP Port: 587 (make sure this is open with your host) you can also useSMTP Host: smtp.postmarkapp.comSMTP Username: Server API token located under the API Tokens tab of your PostMark ServerSMTP Password: Server API token located under the API Tokens tab of your PostMark ServerSMTP SSL Type: TLS https://postmarkapp.com/developer/user-guide/sending-email/sending-with-smtp shows the other ports you can use. 2 Quote Link to comment Share on other sites More sharing options...
n10s Posted March 1, 2020 Share Posted March 1, 2020 I'm using a child theme of Blend, where I have replaced the WHMCS branding. The configuration you shared is precisely what I have set. Mystifying!! 0 Quote Link to comment Share on other sites More sharing options...
n10s Posted March 1, 2020 Share Posted March 1, 2020 I found this thread and will see if the script helps diagnose this. 0 Quote Link to comment Share on other sites More sharing options...
n10s Posted March 4, 2020 Share Posted March 4, 2020 Thanks, to ALL for the priceless help and support on this!! Discovered that the host had to make some "adjustments" to their firewall settings. However, I am grateful to have had these issues in a community that provided me with other VERY useful lessons and learning! Today, I'm setting a Go-Live date for the hosting site. Thanx, @WHMCS ChrisD, I'm getting up to speed on transactional emails and successfully using Postmark. Looking forward to their "Message Streams." There's so much to learn out here in this big ole marvelous world!!😊 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted March 5, 2020 Share Posted March 5, 2020 Glad to hear you've got it sorted @n10s! 1 Quote Link to comment Share on other sites More sharing options...
HostMaria Posted September 27, 2020 Share Posted September 27, 2020 (edited) On 3/1/2020 at 5:46 AM, WHMCS ChrisD said: That is odd and almost seems to indicate you are not using SMTP if nothing is showing, are you using the default Blend Theme in the admin area? If it's helpful to you the configuration I use is: Mail Type: SMTPMail Encoding: base64SMTP Port: 587 (make sure this is open with your host) you can also useSMTP Host: smtp.postmarkapp.comSMTP Username: Server API token located under the API Tokens tab of your PostMark ServerSMTP Password: Server API token located under the API Tokens tab of your PostMark ServerSMTP SSL Type: TLS https://postmarkapp.com/developer/user-guide/sending-email/sending-with-smtp shows the other ports you can use. Thank you. Originally came here to find out G Suite settings. My main concern about G Suite were daily limitations for outbound emails https://support.google.com/a/answer/166852?hl=en (thinking of growth). At the moment we have 400 customer accounts. Signed up to Postmark after your suggestion (did check sendgrid and others as well) - Postmark does seem perfect for sending out system emails. And setup was really simple as well. Thank you, Helmuts p.s. will stick to G Suite only to send out emails manually and to receive all. Edited September 27, 2020 by HostMaria 0 Quote Link to comment Share on other sites More sharing options...
HostMaria Posted September 29, 2020 Share Posted September 29, 2020 @WHMCS ChrisD thank you one more time. It took a bit more than 24 hours to get approved by Postmarkerapp, but after if was done - everything worked as charm. A question: Why did you change the default 8bit mail encoding to base64? tx 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.