User Opinions (27 votes)

How would you rate this answer?

A test email has not been successfully sent to the email address…

If you receive this error:

“A test email has not been successfully sent to the email address xxxx@xxxx.xxx: Unable to connected to mail server: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.”

The most likely cause is due to your server’s inability to connect to the SMTP server. Some common causes of this connection failure are:• Firewall• Linux SE

Another common cause of this connection failure is that PHP can have separate permissions for the execution of scripts via the command line (e.g. invoked via CRON) and the execution of scripts via the web-server (e.g. invoked via a web browser). As such, a script can still lack the necessary permissions, even if you can invoke the script via a web browser.

To test for any of the above conditions you can do the following:

1) Send yourself a test email from ‘Settings’ -> ‘Application Settings’. If the result is unsuccessful, then..2) Schedule a campaign, and send it to yourself. If the result is unsuccessful, then..3) Enable the debugging function for the file /admin/com/ext/interspire_email/email.php.

To enable the debugging function for the /admin/com/ext/interspire_email/email.php, you need to change the following line of code:Line 339 var $Debug = false;

TO:

Line 339 var $Debug = true;

This will generate debug log files, which can be analyzed to determine the root cause of the error. You will find these log files in the /admin/temp directory. Once you have discovered the cause, and resolved the error, do not forget to disable the debugging function and delete any of the log files.