Questions tagged [django-email]

django-email refers to questions about sending emails in your Django application

django-email refers to questions about sending emails in your Django application.

See documentation.

325 questions
255
votes
12 answers

Creating email templates with Django

I want to send HTML-emails, using Django templates like this: hello {{username}} your account activated. I can't find anything about send_mail, and django-mailer only sends…
Anakin
  • 3,070
  • 4
  • 21
  • 12
177
votes
13 answers

How to send email via Django?

In my settings.py, I have the following: EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' # Host for sending e-mail. EMAIL_HOST = 'localhost' # Port for sending e-mail. EMAIL_PORT = 1025 # Optional SMTP authentication information…
Derek
  • 11,980
  • 26
  • 103
  • 162
47
votes
1 answer

Django default_from_email name

I am looking to add a name to my default_from_email address in Django and wanted to know whether you do this through the settings.py file? you have your different options. DEFAULT_FROM_EMAIL EMAIL_HOST EMAIL_PASSWORD ... but the email result still…
ApPeL
  • 4,801
  • 9
  • 47
  • 84
36
votes
6 answers

Manually trigger Django email error report

Django error reporting handles uncaught exceptions by sending an email, and (optionally) shows user a nice 500 error page. This works very well, but in a few instances I'd like to allow users to continue with their business uninterrupted, but still…
frnhr
  • 12,354
  • 9
  • 63
  • 90
24
votes
3 answers

django to send AND receive email?

I have gotten quite familiar with django's email sending abilities, but I havn't seen anything about it receiving and processing emails from users. Is this functionality available? A few google searches have not turned up very promising results.…
Jiaaro
  • 74,485
  • 42
  • 169
  • 190
22
votes
2 answers

Not able to send email - Django

My settings.py: EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' EMAIL_USE_TLS = True EMAIL_HOST = 'smtp.gmail.com' EMAIL_PORT = 587 EMAIL_HOST_USER = 'rakil@gmail.com' EMAIL_HOST_PASSWORD = '*******' DEFAULT_FROM_EMAIL =…
user2086641
  • 4,331
  • 13
  • 56
  • 96
19
votes
3 answers

Python/Django: sending emails in the background

Imagine a situation in which a user performs an action on a website and admins are notified. Imagine there are 20 admins to notify. By using normal methods for sending emails with Django the user will have to wait until all the emails are sent…
nemesisdesign
  • 8,159
  • 12
  • 58
  • 97
19
votes
3 answers

Django HTML E-mail template doesn't load css in the e-mail

I am sending HTML E-mail from Django like this: template_html = "email/deposit_email.html" email_context = Context({ 'contact': contact, 'amount': amount}) subject, from_email, to = 'Deposit Successfully created.',…
pynovice
  • 7,424
  • 25
  • 69
  • 109
16
votes
1 answer

How to override django allauth email templates

I'm using allauth version 0.35.0 and I want to override email templates to make my desired HTML template for them. No problem with allauth login and SignUp and etc. pages But I can't find any template for emails. It's just a .txt file in path…
SirSaleh
  • 1,452
  • 3
  • 23
  • 39
16
votes
2 answers

Django send_mail not working - No email delivered

When the view that sends the email is used nothing happens, i then entered send_mail(...) into the python shell and it returned 1 but i didn't receive any emails. This is my settings.py EMAIL_BACKEND =…
CJ4
  • 2,485
  • 3
  • 26
  • 29
15
votes
8 answers

No connection could be made because the target machine actively refused it (Django)

I have followed the Django Book up until chapter seven, and I am currently messing around with forms, GET, POST and all that goodness. At one point, the guide made me figure out the reaction, after a form is filled out and sent, but when I send the…
Kiwi
  • 1,185
  • 6
  • 14
  • 28
14
votes
4 answers

How can I log all outgoing email in Django?

My Django application sends out quite a bit of emails and I've tried testing it thoroughly. However, for the first few months, I'd like to log all outgoing emails to ensure that everything is working smoothly. Is there a Django module that allows me…
Mridang Agarwalla
  • 43,201
  • 71
  • 221
  • 382
13
votes
9 answers

Django: reset-password not sending email

I am using the Django password reset. I have this code in my settings.py: EMAIL_USE_TLS = True EMAIL_HOST = 'smtp.gmail.com' EMAIL_PORT = 587 EMAIL_HOST_USER = 'myusername@gmail.com' EMAIL_HOST_PASSWORD = 'mypassword' DEFAULT_FROM_EMAIL =…
user1670032
  • 750
  • 3
  • 12
  • 27
13
votes
2 answers

Sending email from Django via hosted SMTP

How do you send email from Django using a hosted SMTP account (specially on Namecheap)? I thought this would be straight forward, and simply a matter of filling out the standard EMAIL_* fields in my settings.py. However, after entering my…
Cerin
  • 60,957
  • 96
  • 316
  • 522
12
votes
1 answer

Django email

I am using the Gmail SMTP server to send out emails from users of my website. These are the default settings in my settings.py EMAIL_HOST = 'smtp.gmail.com' EMAIL_HOST_USER = 'example@example.com' EMAIL_HOST_PASSWORD = 'pwd' EMAIL_PORT =…
crashekar
1
2 3
21 22