Questions tagged [django-email]

0

votes
0

answer
17

Views

Email in django not being sent

I have a simple django application and I am not understanding why email are not being sent In my settings file I have EMAIL_USE_TLS = True EMAIL_HOST = 'smtp.gmail.com' EMAIL_PORT = 587 EMAIL_HOST_USER = '[email protected]' EMAIL_HOST_PASSWORD = 'Mypassword' DEFAULT_FROM_EMAIL = 'From Email' but repl...
Augusto Peres
1

votes
1

answer
44

Views

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 = '[email protected]' EMAIL_HOST_PASSWORD = 'passwordsecret' EMAIL_USE_TLS = True DEFAULT_FROM_EMAIL = '[email protected]' SITE_ID = 2 Output...
Kamil Septio Trojnar
0

votes
1

answer
8

Views

Django smpt email backend slowing down performance

I'm developing/serving currently locally. I'm using django-admin for internal users to add items. I add in my signal code. My signal is post_save and it's purpose is to send an email to a user for approval. I test my signal using console.EmailBackend EMAIL_BACKEND = 'django.core.mail.backends.consol...
Rach Odwyer
1

votes
1

answer
31

Views

Django Oscar user verification email

I have a simple installation of Django Oscar project. I would like to know how to send user verification email so that all new users registered email IDs can be verified? By default Oscar registers new users and sends registration email to users.
abi crazieeee
1

votes
2

answer
987

Views

Django - Attach PDF generated by a view to an email

This question has some elements here, but no final answer. There is view generating a PDF with easy_pdf from easy_pdf.views import PDFTemplateResponseMixin class PostPDFDetailView(PDFTemplateResponseMixin,DetailView): model = models.Post template_name = 'post/post_pdf.html' Then, I want to attach th...
Aurélien
1

votes
2

answer
2.8k

Views

ValueError: need more than 1 value to unpack, django email error

I'm trying to use django to send emails to a bunch of people at the same time (although right now, I'm trying to get it to work with only one). I have a class called User that has a field email and a foreign-key to a class called Group. Now, I'm trying to send an email to all users in a specific gro...
1

votes
2

answer
592

Views

Send Weekly Email Notifications to Users regarding any changes in data

What are ways to send automatic weekly email notifications to users upon any update or changes in the data in a django project ?
Praneeth
1

votes
1

answer
550

Views

Request repr() unavailable in Django 500 error email: how do I debug how to get the full stack trace?

Normally the django 'mail_admins' logging handler will email you 500 errors to ADMINS along with a useful stacktrace of what happened. But for some reason I'm getting error emails with Request repr() unavailable at the bottom of the email! Anyone know how to figure out why this is happening? (So...
David Lam
1

votes
2

answer
149

Views

dont freeze on sending mail django

When django sends an email, it takes from a few milli-seconds to a few seconds depending upon the smtp server. So the problem that i am facing is when django starts sending email it freezes there. The user would have to wait till the mail has been sent. I was wondering if i could simply return the h...
Ninja Turtle
6

votes
3

answer
4.4k

Views

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 of them. I add all users' email addresses to the bcc...
dangerChihuahua007
21

votes
3

answer
12.2k

Views

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. Though I did find this: Receive and send emails in py...
Jiaaro
5

votes
1

answer
1.1k

Views

How to force error reporting from django management commands?

We are running custom management commands periodically on the server. Is there any way to get something like error reporting via email working for the command?
Oleksiy
2

votes
1

answer
303

Views

Django, overriding “is_authenticated()” when we have Email instead of username

I'm using the django-email-as-username app for using email rather than username for authentication, and it works like a charm. Now, in view I want to call if request.user.is_authenticated() but this method just authenticate users based upon (username+password) and not (email+password). How should I...
Soask
4

votes
2

answer
2.5k

Views

Django - email app

Could you please suggest any available app for sending & managing emails in django?
4

votes
1

answer
1.5k

Views

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) triples." So I'm generating an iCal file in a functi...
PhoebeB
4

votes
4

answer
1.3k

Views

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
12

votes
1

answer
7.1k

Views

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 = '[email protected]' EMAIL_HOST_PASSWORD = 'pwd' EMAIL_PORT = 587 EMAIL_USE_TLS = True SERVER_EMAIL = EMAIL_HOST_USER DEFAUL...
2

votes
1

answer
492

Views

Can I hash/encrypt or otherwise protect emails in my Django app from hackers?

Hoping for a simple function I can use to store emails securely and retrieve easily when required to send emails.
user2916527
6

votes
1

answer
188

Views

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 sub-domain to the aws instance's elastic IP, for example...
Ryflex
1

votes
1

answer
2.9k

Views

Django EmailMultiAlternatives sending to multiple “to” addresses

Is there a way in Django EmailMultiAlternatives that you can send to multiple "to" addresses, without having to send it again? Have tried separating the email int the tuple by commas, but only the first recipient receives the emails.
ApPeL
2

votes
0

answer
77

Views

Django emailmultialternatives include round bracket in from email

I'm trying to send email in django using EmailMultiAlternatives. Here is my code: email_msg = EmailMultiAlternatives(subject,text_content,"Abc (ABC) ",['[email protected]']) email_msg.send() the email is sent out fine but the contents inside the bracket in my from email were missing. So when I received th...
kyiphyu
13

votes
2

answer
4.7k

Views

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 credentials in both my settings.py and Thunderbird, Thunderbi...
Cerin
13

votes
3

answer
8.7k

Views

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 before being able to proceed. How can I send all the ema...
nemesisdesign
2

votes
0

answer
108

Views

In django send_mass mail creates a new http connection everytime it sends a mail

I have a use case where I need to send 16000+ users unique mails. To do this I am using mandrill api( djrill). To make it more efficient and optimized I am trying to use send_mass_mail functionality along with celery. While doing so I was checking the celery logs and found that for each email, the...
Akash Deshpande
3

votes
3

answer
1.1k

Views

How do I support users with multiple emails in Django?

I am creating a Django application in which users can have multiple emails including a primary one. In Django, the SQL user table has a single CharField to store a single email address. My current plan is to create a new model called say "EmailAddress" and then link this model to the User model via...
dangerChihuahua007
3

votes
2

answer
3.9k

Views

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 "F:\Development\Python\lib\smtplib.py", line 366, in getreply line = self.fil...
ahawkthomas
2

votes
1

answer
823

Views

Code for sending activation data back to django server from email

Im trying to understand the django-registration app, and now Im able to send emails to users with activation key. What Im not able to figure out is how to send the activation key back to server when the user clicks a link in his/her email. class AbstractEmailUser(AbstractBaseUser, PermissionsMixin):...
H H H
1

votes
2

answer
962

Views

How to send email as alias using Django

Background: I have a site I'm building using Django and I've encountered the following conundrum. I have a backend email that we will call [email protected] Now I also have a domain email that forwards directly to [email protected] which is called [email protected] Currently I have m...
Buck
3

votes
2

answer
1.8k

Views

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 = ['groups', 'is_staff', 'is_superuser', 'is_active'] actions = [...
noahandthewhale
3

votes
1

answer
1.8k

Views

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 loop? https://docs.djangoproject.com/en/1.7/topics/email/
Krishan Gupta
7

votes
1

answer
1.1k

Views

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': { 'level': 'ERROR', 'filters': ['require_debug_false'], 'class': 'django....
yprez
2

votes
1

answer
45

Views

How to send pdf file as an attachment in Django

I have a form where the user can ask for an document. They need to enter the name and the email address and the document will be sent to that email address. How to do that? My code is as follows: if download_form.is_valid(): ln_go = get_lang_code(request, request.GET.get('lang')) file_to_be_sent =...
Boky
3

votes
1

answer
523

Views

Django confirm email. Change value from false to true

This is my model: from django.db import models class Meeting(models.Model): name = models.CharField(max_length=255) time = models.DateTimeField() confirmed = models.BooleanField(default=False) This is my form: from django import forms class MeetingForm(forms.Form): name = forms.CharField(max_length=...
query_gif
6

votes
2

answer
1.4k

Views

Django email digest

Is there an existing plug-in to produce daily or weekly digest emails in Django? (We want to combine many small notifications into one email, rather than bother people all the time.) Django-mailer claims to support this, but I'm told it doesn't really.
Jane Sales
4

votes
2

answer
2.8k

Views

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

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 = 'mail.privateemail.com' EMAIL_HOST_USER = '[email protected]' EMAIL_HOST_PASSWORD = 'my...
darkhorse
1

votes
1

answer
734

Views

Django app for sending periodic emails?

The main functionality of it would be: check a condition every day if the condition is true, then send email Now, I know how to conditionlly send email, but I don`t know how to do make it repeat every day. I have some ideas but not sure about them at all (to add another process? or others?). I appr...
gareth
1

votes
2

answer
914

Views

How to create a django app to send massive emails?

I wanted to create a simple interface to send massive mails for a django project (Gitorious, GitHub) but I don't know how to start (models, forms, views, etc.). I looked at django-mailer but it doesn't suit my needs, also I dind't find another mailer application for django that was this complete. An...
Oscar Carballal
2

votes
0

answer
60

Views

Django how to send an email with the user link?

Hi i am newbie in Django just learning from the documentation.I just used django send an email https://docs.djangoproject.com/en/2.1/topics/email/. i want to send an email in join message want to send an a url with its driver ID in it for book a car . how do i send an url with his id . for example i...
Abu bakr
3

votes
5

answer
6.8k

Views

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 = 'mail.privateemail.com' EMAIL_HOST_USER = '[email protected]' EMAIL_HOST_PASSWORD = 'my...
darkhorse
27

votes
5

answer
4k

Views

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 have Django send me the email error report about t...
frnhr

View additional questions