When SMTP settings use an SMTP relay where the authentication is configured on the relay side, therefore, the configuration on ProcessMaker will use port 25 so no Secure connection method and authentication are required. In these cases, the connection test works fine but does not send out the test email, also, running cases will return a "Cannot connect" issue on the email's logs. See images below
This is a known issue in PM that does not remove the SMTPAutoTLS validation for the PHPMailer's class when no secure method is selected, In order to fix you could change the code as follows
In file /processmaker/workflow/engine/classes/SpoolRun.php
look for the private function handleMail() and the following code:
notice that an ELSE block was added
Also, change the PHPMailer's $SMTPAutoTLS public variable to false:
For versions 3.5 and below
/opt/processmaker/vendor/phpmailer/phpmailer/class.phpmailer.php
For versions 3.6.x and above
/opt/processmaker/vendor/phpmailer/phpmailer/src/PHPMailer.php
From:
to:
Restart the Supervisor workers/service and try the email test one more time.