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
12
votes
5 answers

Django mails not being saved (File backend)

I have configured Django to use a file backend for email sending on my local machine. This seemed to work fine earlier on, and all mails were recorded in the directory I had specified in my settings.py file: EMAIL_BACKEND =…
user585936
12
votes
2 answers

Using Django Admin Actions to send bulk emails

I'm looking for a way to send bulk emails to users from a Django Admin Action. This is what I have thus far: class MyUserAdmin(UserAdmin): list_display = ['username', 'email', 'first_name', 'last_name', 'is_active', staff] list_filter =…
deadlock
  • 7,048
  • 14
  • 67
  • 115
11
votes
5 answers

STARTTLS extension not supported by server - Getting this error when trying to send an email through Django and a private email address

I registered a domain and a private email using namecheap.com. I am trying to send an email from this private email. However, I get the error in the title. In my settings.py, I have these settings: EMAIL_HOST =…
darkhorse
  • 8,192
  • 21
  • 72
  • 148
10
votes
3 answers

How does one send an email to 10,000 users in Django?

My Django application has 10,000 users, all with emails. I would like to send an email message to all of them say once a month. This message could have some pdf attachments. What I have tried is using an EmailMessage object to send an email to all…
dangerChihuahua007
  • 20,299
  • 35
  • 117
  • 206
9
votes
2 answers

Django Error Reporting - How to know which user triggered the error?

Is there a way I can customize Django error reporting so when it emails me it lets me know which user triggered the error? I'm in Django 1.2 if it matters. Much Thanks in advance!
Greg
  • 45,306
  • 89
  • 231
  • 297
9
votes
2 answers

Django – generate a plain text version of an html email

I want to improve deliverability rates by providing both text-only and html versions of emails: text_content = ??? html_content = ??? msg = EmailMultiAlternatives(subject, text_content, 'from@site.com',…
Max Malysh
  • 29,384
  • 19
  • 111
  • 115
8
votes
1 answer

Attaching an ical file to a django email

There are plenty of examples of how to attach a file to an email, but I can't find an example of how to attach a MIMEBase instance. From the docs: attachments "These can be either email.MIMEBase.MIMEBase instances, or (filename, content, mimetype)…
PhoebeB
  • 8,434
  • 8
  • 57
  • 76
8
votes
1 answer

Django - Using a different email backend for admin error emails

I'm using a custom email backend in my Django application (CeleryEmailBackend in this case): EMAIL_BACKEND = 'djcelery_email.backends.CeleryEmailBackend' My logging configuration: LOGGING = { # ... 'handlers': { 'mail_admins': { …
yprez
  • 14,854
  • 11
  • 55
  • 70
7
votes
1 answer

Django: Send HTML email via send_mass_mail()

It seems from the docs on email that HTML is supposed for send_mail() but not send_mass_mail(). Is my understanding correct, and if so is there a work-around to get the send_mass_mail() functionality with HTML without writing a custom…
Krishan Gupta
  • 3,586
  • 5
  • 22
  • 31
7
votes
3 answers

Email templating in django

As we all know (or should), you can use Django's template system to render email bodies: def email(email, subject, template, context): from django.core.mail import send_mail from django.template import loader, Context send_mail(subject,…
Oli
  • 235,628
  • 64
  • 220
  • 299
7
votes
5 answers

Sending email using Outlook SMTP

I want to send email in Django application using Outlook's SMTP server. The problem is, I get SSL wrong version number error every time I'm trying to send a message. Error traceback: Traceback (most recent call last): File…
ahawkthomas
  • 656
  • 3
  • 13
  • 26
6
votes
1 answer

Django send_mail does not work with mailgun

Settings: EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' EMAIL_HOST = 'smtp.mailgun.org' EMAIL_PORT = 587 EMAIL_HOST_USER = 'donotreply@kamiltrojnar.pl' EMAIL_HOST_PASSWORD = 'passwordsecret' EMAIL_USE_TLS = True DEFAULT_FROM_EMAIL…
6
votes
4 answers

SMTP AUTH extension not supported by server - Sending emails through a private host

I registered a domain and a private email using namecheap.com. I am trying to send an email from this private email. However, I get the error in the title. In my settings.py, I have these settings: EMAIL_HOST =…
darkhorse
  • 8,192
  • 21
  • 72
  • 148
6
votes
1 answer

Using Django to send emails with AWS with a reverse DNS setup to point at a different server

I'm trying to setup Django on an AWS instance to send emails through my main website's server (non-AWS) rather than needing to use external mail services such as Mandrill, Amazon SES... etc I first setup my main server's DNS records to point a…
Ryflex
  • 5,559
  • 25
  • 79
  • 148
5
votes
5 answers

Django Error Reporting Email when Debug = True

Is there a way to get Django to email me error reports even though I have debug set to True? I didn't see anything in the docs. Edit: I'm on Django 1.2 if it matters. No, this isn't a production system.
Greg
  • 45,306
  • 89
  • 231
  • 297
1
2
3
21 22