# django send\_mail not working now.

**URL:** <https://forum.djangoproject.com/t/django-send-mail-not-working-now/27802>\
**Category:** Mystery Errors\
**Created:** [February 6, 2024, 10:50am UTC](https://forum.djangoproject.com/t/django-send-mail-not-working-now/27802 "2024-02-06T10:50:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [February 6, 2024, 3:37pm UTC](https://forum.djangoproject.com/t/django-send-mail-not-working-now/27802/2 "2024-02-06T15:37:26Z")

</div>

I keep a test program handy to verify that emails are working. It’s run from the command line and it tries to send a short email.

I took the example from the Python docs for an [SMTP Example](https://docs.python.org/3/library/smtplib.html#smtp-example), with hard-coding the variables instead of being prompted for them, and substituting the appropriate server variables.

Creating a script like that with using `set_debuglevel(2)` should provide enough detail to help you determine where things are going wrong.

Also see [Django how to send\_mail via local sendmail - #6 by KenWhitesell](https://forum.djangoproject.com/t/django-how-to-send-mail-via-local-sendmail/5793/6) for another approach I’ve used.

---

_[View the full topic](https://forum.djangoproject.com/t/django-send-mail-not-working-now/27802)._
