1.

In settings.py
EMAIL_HOST = ‘localhost’
EMAIL_PORT = 1025
EMAIL_HOST_USER = ”
EMAIL_HOST_PASSWORD = ”
EMAIL_USE_TLS = False
DEFAULT_FROM_EMAIL = ‘testing@example.com’

2. Execute

$python -m smtpd -n -c DebuggingServer localhost:1025

Nothing will happen until you send email.

3.

$python manage.py shell

>>>from django.core.mail send_mail

>>>send_mail(‘subject’, ‘body’,'from@example.com’,['youremail@gmail.com'])

This will display the mail.

2 Responses to “How to setup testing email sending?”

  1. Great site…keep up the good work.

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© 2011 Web Oom Suffusion theme by Sayontan Sinha
Switch to our mobile site
Top Footer