Django configuration to send email -


facts:
working on localhost devserver. have django project email sending works perfectly. set new django project, both 1.4.5, copy / paste email settings form working project (email_host, email_port...) in settings.py new one, open shell manage.py , load send_mail django.core.mail on first project can send emails (i receive them in email client), on second email never gets sent. tried various servers, gmail , gandi. tried directly smtplib in pure python code , works same settings. while sending mail first project , smtplib can see function takes few seconds return prompt in command line second project returns prompt makes me think nothing happening.

question wrong in new project's config? look? , if possible how debug that? (the send_mail function returns 1, number of mails have sent, there way trace or useful error message?)

to answer 1 of questions:

>>> how debug that?

use pdb.set_trace() before call whatever want debug.


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -