Join 34,000+ subscribers and receive articles from our
blog about software quality, testing, QA and security.

Test Rail Send E-mail notification



I’m having problem sending e-mail notification after report is generated. When I try to send a test email from site settings i get an error like :

Sending the test email failed. Please see the following messages and server output for details:
Authentication failed using username ‘’ and password '*’

Background Task is installed and running.
From logs I get :
[Swift_ConnectionException] Authentication failed using username '***’ and password '
at Swift_Connection_SMTP->runAuthenticators (SMTP.php:332)
at Swift_Connection_SMTP->postConnect (Swift.php:265)
at Swift->handshake (Swift.php:221)
at Swift->connect (Swift.php:102)
at Swift->__construct (email.php:120)
at Email_library->_try_send (email.php:78)
at Email_library->send (email.php:117)
at email::send (email.php:39)
at email::send_from_template (reports.php:810)
at reports::share_link (reports.php:198)
at Reports_job->_run_report_notifications (reports.php:134)
at Reports_job->_run_report (reports.php:44)
at Reports_job->run (tasks.php:174)
at Tasks_controller->_run_job (tasks.php:143)
at Tasks_controller->_process_job (tasks.php:61)
at Tasks_controller->_run (tasks.php:50)
at Tasks_controller->index (controller.php:126)
at Controller->_invoke_cli (controller.php:116)
at Controller->_invoke (gizmo.php:107)
at require_once (index.php:106)
at require_once (task.php:49)

Any thoughts ?


Hi Milos,

Thank you for your post. From the error you are getting it appears that the username and password that are being used to authenticate against your email server may be incorrect. Can you please double check the username and password to ensure these are in fact correct?


Yes, user can login to our email server. I am assuming that user which tries to authenticate with our server is one we define in Site Settings/ Email ?


Hi Milos,

Thanks for your reply! Yes, you are correct that the user credentials entered under Administration > Site Settings > Email is what would be used for the mail server authentication. The error just indicates that the credentials are incorrect for that account on the mail server. We would recommend reviewing your mail server logs as this should provide more details with the error to help you in troubleshooting the issue. Hope this helps!