Organizr Version: V 2.0.270
Branch: Master
WebServer: Nginx
Operating System: CentOS 7
I have just set up Organizr using the install script on CentOS 7. I am unable to send a test email getting error:
Mail Function - E-Mail Test Failed[SMTP connect() failed.
I have tested telnet can connect.
[user@organizr ~]$ sudo telnet smtp.zoho.com 587
Trying 136.143.191.189...
Connected to smtp.zoho.com.
Escape character is '^]'.
220 mx.zohomail.com SMTP Server ready July 24, 2019 4:42:04 PM
I have also done some research and found other threads with this issue but I was unable to fix it with the things that causefx suggested such as the config.php edits (https://github.com/causefx/Organizr/issues/583).
Here are screenshots of my settings pages.
Here is the output of my config.php
'PHPMAILER-enabled' => true,
'PHPMAILER-logo' => 'https://raw.githubusercontent.com/causefx/Organizr/v2-develop/plugins/images/organizr/logo-wide.png',
'PHPMAILER-smtpHost' => 'smtp.zoho.com',
'PHPMAILER-smtpHostAuth' => true,
'PHPMAILER-smtpHostPassword' => 'ADWPSM+ANLIW=', // fake
'PHPMAILER-smtpHostPort' => '587',
'PHPMAILER-smtpHostSenderEmail' => '[email protected]',
'PHPMAILER-smtpHostSenderName' => 'Organizr',
'PHPMAILER-smtpHostType' => 'tls',
'PHPMAILER-smtpHostUsername' => '[email protected]',
'PHPMAILER-template' => 'default',
'PHPMAILER-verifyCert' => true,
I have tried Authentication "off" with port 25, "SSL" with 465, and "TLS" with 587.
Configure PHP Mailer within GUI, save configuration, click Test.
Mail Function - E-Mail Test Failed[SMTP connect() failed.
Is it a Zoho US, or Zoho EU account(when you log in, is the url .com or .eu)?
Thanks, I posted here as well as I haven't received much traffic on the Reddit post. It is US based Zoho, using smtp.zoho.com.
I have no issues with any other self-hosted application sending email using smtp.zoho.com on port 587 using TLS auth. I can even telnet on that port. It is just failing with a general error using PHPmailer.
Please switch to dev branch and enable debug output and sent test again, please paste the output from console.
Please switch to dev branch and enable debug output and sent test again, please paste the output from console.
I have switched to dev branch. How to I enable debugging for PHP Mailer?
next to send test email button. there will be a toggle next to it. toggle it, then save it. wait 2 seconds and hit test button. output will be in console.
I am not seeing the debug option. I did restart the server and disable/re-enable the plugin as well. Is there a way to fully reinstall PHP Mailer? https://imgur.com/NRcOkSs
sorry. forgot to mention after switching branches you need to force install branch from setttings.
I did do it with the "Force Install" branch button method and it went through successfully. Main page stats note that I am on v2-develop branch.
try clearing cache
Browser cache and cookies? Or in the app?
I ran in incognito session and no debug option still.
Might wanna try manually pulling...
not sure why it isn't updating for you. I just tested on another install and the update worked...

@christronyxyocum @Roxedus does the toggle show up for you guys?
Yep, I can see it just fine.
I was able to run the "Retrieve" on Force install again and was able to get the debug option.
Here is the output. Let me know where I can find the .txt if needed:
https://imgur.com/qSiNMmu
I wonder if my Hash key is too complex or broken? I have it set at 30 characters with high complexity. I have verified authentication with this SMTP account using another application. Something is off with the PW that PHP Mailer is handing off to the SMTP server.
clear your is cache as it isn鈥檛 updated on your end. that dialog should say to push F11 to check console.
mobile... top should say js cache
found this on permission denied for CentOS:
$ getsebool httpd_can_sendmail
$ getsebool httpd_can_network_connect
if you get these:
httpd_can_sendmail --> off
httpd_can_network_connect --> off
run this:
$ setsebool -P httpd_can_sendmail 1
$ setsebool -P httpd_can_network_connect 1
you may need to run as root:
$ sudo setsebool -P httpd_can_sendmail 1
$ sudo setsebool -P httpd_can_network_connect 1
Now try to send again...
Thanks, that did it! The output was set to "off". I ran the setsebool commands and was able to send mail successfully.
Most helpful comment
Thanks, that did it! The output was set to "off". I ran the setsebool commands and was able to send mail successfully.