Created
August 28, 2014 09:24
-
-
Save arthuralvim/525ceb923362c8583a48 to your computer and use it in GitHub Desktop.
Fast check if your SMTP settings are ok.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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