# Emails not getting sent

**URL:** <https://forum.djangoproject.com/t/emails-not-getting-sent/43254>\
**Category:** Mystery Errors\
**Created:** [October 23, 2025, 12:51pm UTC](https://forum.djangoproject.com/t/emails-not-getting-sent/43254 "2025-10-23T12:51:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![F2Andy](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/f2andy/32/29160_2.png) [@F2Andy](https://forum.djangoproject.com/u/F2Andy)\
**Post date:** [October 23, 2025, 12:51pm UTC](https://forum.djangoproject.com/t/emails-not-getting-sent/43254/1 "2025-10-23T12:51:01Z")

</div>

I want to use EmailMultiAlternatives to send emails from my Django project, so have set up a little method:

```auto
EMAIL_HOST = ‘ *********************************** ’
EMAIL_USE_TLS = True
EMAIL_HOST_USER = ‘ ************************** ’
EMAIL_PORT = 25
ACCOUNT_EMAIL_VERIFICATION = ‘none’
EMAIL_USE_SSL = False

from django.core.mail import EmailMultiAlternatives
from smtplib import SMTPException

def email(subject, text_content, html_content):
msg = EmailMultiAlternatives(
subject,
text_content,
EMAIL_HOST_USER,
[“ ****************************** ”],
)
msg.attach_alternative(html_content, “text/html”)
try:
print(msg.send(fail_silently=False))
print(“Email sent to”)

except SMTPException as e:
    print("Email failed")
    print(e)

```

When I go into the shell, it reports one email sent; no error. But the email never arrives.

What makes this so mysterious is that I have a fork of the same project on the same drive on my computer. In that project, it works. I have two command prompts open in the respective folders. I fire up the shell, import the file, call the method. One works and one does not. The code is identical, I copy-and-pasted from one to the other.

Can anyone suggest a reason why one works and the other does not?

---

<div class="post-metadata">

**Author:** ![F2Andy](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/f2andy/32/29160_2.png) [@F2Andy](https://forum.djangoproject.com/u/F2Andy)\
**Post date:** [October 30, 2025, 8:37am UTC](https://forum.djangoproject.com/t/emails-not-getting-sent/43254/3 "2025-10-30T08:37:12Z")

</div>

Turned out one version was using a different backend for emails so the developers could test with anymail.

For anyone else who hits this, search to see if FROM\_EMAIL is set anywhere.

---

<div class="post-metadata">

**Author:** ![JannetGen](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/jannetgen/32/31861_2.png) [@JannetGen](https://forum.djangoproject.com/u/JannetGen)\
**Post date:** [March 18, 2026, 8:19am UTC](https://forum.djangoproject.com/t/emails-not-getting-sent/43254/4 "2026-03-18T08:19:20Z")

</div>

I’ve run into this same headache before - getting emails to send from Django can be such a pain to debug. If you’re not seeing any errors but the emails just aren’t arriving, I’ve found that it’s usually one of two things.

First, definitely double-check that your EMAIL\_BACKEND isn’t accidentally still set to the console backend in your settings. If that looks good, it might be a silent failure from the SMTP provider. Sometimes switching to a dedicated email service or even just testing with a simple local SMTP server first helps to narrow down if the issue is in your Django code or with the external provider’s credentials. Stick with it, you’ll get it sorted!
