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

Email is not sent for assigned user


#1

i have assigned the test run to one user…but the email is not sent for user…


#2

Hello Kader,

Thanks for your posting! Email notifications depend on a variety of factors. Please make sure that global and user-specific email notifications are enabled (Administration > Site Settings > Email and per user under My Settings). Please also note that TestRail doesn’t generate notifications if you assign a test to yourself.

If you are using a self-hosted TestRail installation, you can check your email configuration in general under Administration > Site Settings > Email by sending a test email. If you are using TestRail Cloud, I would recommend checking your spam folder in case you don’t see the emails within a few minutes (and adding @testrail.com to your whitelist).

I hope this helps!

Cheers,
Tobias


#3

Email notifications enabled…

[Swift_ConnectionException] The SMTP connection failed to start [192.168.2.220:25]: fsockopen returned Error Number 111 and Error String 'Connection refused’
at Swift_Connection_SMTP->start (Swift.php:217)
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 (notifications.php:110)
at Notifications_job->_send_message (notifications.php:65)
at Notifications_job->_process_message (notifications.php:52)
at Notifications_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:123)
at Controller->_invoke_cli (controller.php:113)
at Controller->_invoke (gizmo.php:107)
at require_once (index.php:106)
at require_once (task.php:49)


#4

Thanks, Kader! This looks like an issue with the email server you’ve configured. Are you sure that an email server is running on 192.168.2.220:25? If your TestRail installation is running on Unix/Linux, you often also have a local SMTP/email server installed (localhost/127.0.0.1) which can deliver emails. Could you try this please instead?

Cheers,
Tobias


#5

Thanks,its working.now:):slight_smile:


#6

Great to hear that :smile:

Cheers,
Tobias


#7

Hi Team,

we have almost same issue. Cannot connect to our mail server with following error.

The SMTP connection failed to start [127.0.0.1:25]: fsockopen returned Error Number 13 and Error String ‘Permission denied’

Same thing applies for the local mailserver in linux as sugested above.

telnet to the server works without issues. What can be causing this?

Thanks


#8

Hi Tomas,

Thanks for your posting. Please make sure that your SMTP server is actually listening on 127.0.0.1 (and not just on the public IP, for example). Permission Denied might also indicate a permission error (so the web server is not allowed to open a TCP connection). Do you use something like SELinux that might prevent TCP connections initiated by your web server?

Cheers,
Tobias