Troubleshooting

Troubleshoot email messages are not sent

You can check if your email settings are configured correctly in settings.py 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', 'from@example.com', ['to@example.com'], fail_silently=False)
# exit Django shell by typing CTRL_D or exit()
exit()

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

All email settings are explained in the Django documentation: https://docs.djangoproject.com/en/dev/topics/email/

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.