Ask Your Question
1

How to debug email sending?

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

tfoote gravatar image

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
0

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

pajju gravatar image

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

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

python-2.7 manage.py shell 
>>> from django.core.mail import EmailMessage
>>> email = EmailMessage('email Testing', 'This is a test for that Strange user', to=['Thatuser@Hisdomain.com'])
>>> 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

Comments

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 gravatar imagenicanorl ( 2013-12-07 20:01:14 -0500 )edit
1

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

Evgeny gravatar image

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

Stats

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

Seen: 193 times

Last updated: Jun 13 '13