Skip to content

Instantly share code, notes, and snippets.

@arthuralvim
Created August 28, 2014 09:24
Show Gist options
  • Select an option

  • Save arthuralvim/525ceb923362c8583a48 to your computer and use it in GitHub Desktop.

Select an option

Save arthuralvim/525ceb923362c8583a48 to your computer and use it in GitHub Desktop.
Fast check if your SMTP settings are ok.
# Enter python manage.py shell
from django.core.mail import EmailMessage
email = EmailMessage('Subject', 'Message', to=['example@example.com'])
email.send()
# It should return 1 if everything is ok.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment