Hello everyone. I am trying to figure out why our SMTP isn’t working.
I am trying to set up the app password for microsoft outlook, and I replaced that with the current password we have set up, but we are still getting this error: "An error (SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub) occurred sending an email to (insert our email here) "
We’ve enabled SMTP on our side (we are using outlook for our email), and here are the current Microsoft standards:
What is STARTTLS? I kept the option as automatic, TLS, and SSL and I am still getting this error as well. I hope that I can get this issue pertaining to SMTP solved soon.
It could be many things, but I had an issue with SMTP mail and PHP in the past, and it was because they weren’t active in the server. If you’re using a shared hosting and have access to cPanel, you could try to add these via the PHP Pear Packages:
Mail
Net_SMTP
Net_Socket
Auth_SASL
It did the work for me, not sure if it applies to you. If someone thinks I’m mistaken, please correct me. Good luck!
Hey Jorge! I am self hosting gibbon on a web server, but if it’s possible, can you detail me the instructions on how to install those libraries? This possible fix should be the same regardless of self or shared hosting, so I’d like to know how to approach this problem. Thank you!
I’m not an experienced linux user, I just see many people here having problems with shared hosting services and I’m picking up informations as I go along. I’ve installed Gibbon with Softaculous and did everything through cPanel, as I don’t have SSH access - my provider doesn’t allow it.
Having said that, did you take a look at the PHPMailer troubleshoot you’ve posted? It seems that the “SMTP connect() failed” could be “often reported as a PHPMailer problem, but it’s almost always down to local DNS failure, firewall blocking (for example as GoDaddy does), local anti-virus software, or another issue on your local network”. There are some solutions there, like running commands to test the network and other possible solutions.
One of the first things they mention in that troubleshoot is to make sure you have composer installed (check here for instructions on how to install it, if you don’t have it yet) and then enable some debug code to find out what’s going on.
Again, please don’t take my word for it, I hope someone more experienced than me could contribute to this discussion. Good luck!
In our small school we use third party SMTP server.
They have few options. Free version is 1000 emails per month.
It is working great.
No problem se far.
If someone is interested i can post link here.
I am getting a specific error, I see in the logs in the apache server that it says, "SMTP ERROR: Password command failed: 535 5.7.139 Authentication unsuccessful, basic authentication is disabled. "
I am using an email from outlook, and all of the options are correct on our side (including the app password), so I am not sure how the authentication is failing. Either it is occurring on Gibbon’s side or on Microsoft Outlook’s side from my guess.
Hi @moabdisamad2 Yes, it looks like Outlook in recent months has switched to only supporting OAuth for authentication and no longer supports basic SMTP authentication. Other SMTP services should work, as you’ve discovered.