Ask Your Question

How to debug email sending?

asked 2013-06-12 16:34:41 -0500

tfoote's avatar

updated 2013-06-12 17:47:25 -0500

I have a user who is not recieving emails despite having set his email address and subscribed to notifications. His profile inbox shows the notifications reaching him. However he does not get any email. Most people who have complained before have been getting the emails, but they were getting spam filtered. However in his case I do not see the emails in the mail.log on the server.

How can I debug where the notifications are getting lost before getting to the email?

Edit: I've checked their subscriptions settings are all set to instant. They are sending selected tags. And they have several active tags selected on the home screen.

I don't see any reference to his email in /var/log/mail.log

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-06-13 09:49:16 -0500

pajju's avatar

updated 2013-06-13 09:57:33 -0500

Try to debug on the console: You will get debug information, everytime.

python-2.7 shell 
>>> from django.core.mail import EmailMessage
>>> email = EmailMessage('email Testing', 'This is a test for that Strange user', to=[''])
>>> email.send()
This should return with the status 1, which means it worked.

Debug on the console. The debug information will help! ;)

edit flag offensive delete link more


Thanks, I've done it and It returns status 1, and email was sent (I've sent an email to myself). But using askbot, users do not receive emails when a questioin is answered. I've checked all subscriptions to "instant". Also, there are no messages on mail.log I've sent a message using the feedback form and the message was sent.

nicanorl's avatar nicanorl  ( 2013-12-07 20:01:14 -0500 )edit

answered 2013-06-12 16:42:34 -0500

Evgeny's avatar

He/she must have subscriptions enabled (check profile->subscribtions tab).

Then - look at mail.log there may be clues of rejected messages, after that receiving mail server log and the spam mail box.

Some mail servers are very zealous at filtering messages.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2013-06-12 16:34:41 -0500

Seen: 788 times

Last updated: Jun 13 '13