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.

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