Troubleshoot email messages are not sent

You can check if your email settings are configured correctly in by trying to send an email message from the Django shell command line utility.

SSH to the server where Fleio is installed and run these commands in bash:

# activate the Python virtual environment
. /var/webapps/fleio/env/bin/activate
# following line is only needed on CentOS 7
if [ -e /opt/rh/rh-python35/enable ] ; then . /opt/rh/rh-python35/enable; fi
# move to the Django backend project directory
cd /var/webapps/fleio/project/fleio
# start the Django shell
django shell
# you should see the shell prompt now: >>>
# let's try to send an email
# !!! replace with from and to email addresses accepted by your mail server
from django.core.mail import send_mail
send_mail('Subject', 'message', '', [''], fail_silently=False)
# exit Django shell by typing CTRL_D or exit()

If mail sending fails, you’ll see the error and a stack trace, try to fix settings in See How to apply Fleio backend changes.

All email settings are explained in the Django documentation:

If there’s no error and “1” is displayed instead, the email was successfully sent and you should analyze the mail server log if you do not receive the test message.