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
1
vote
1 answer

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! …
David Lam
  • 4,689
  • 3
  • 23
  • 34
1
vote
1 answer

Call a template in html_content in django core email

How can I call a template instead of plain HTML to send email with django core email? My views: to = articles.user.email html_content = '

This is your email content...

' msg = EmailMultiAlternatives('You have an…
dfrojas
  • 673
  • 1
  • 13
  • 32
1
vote
1 answer

Wagtail 0.8.6 - submit for moderation - email notification to moderators group members

I noticed that in the docs it's clearly mentioned that an email is sent when a page is submitted for moderators: Email Notifications WAGTAILADMIN_NOTIFICATION_FROM_EMAIL = ’wagtail@myhost.io’ Wagtail sends email notifications when content is…
Luke
  • 1,794
  • 10
  • 43
  • 70
1
vote
2 answers

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
  • 902
  • 2
  • 11
  • 25
1
vote
0 answers

django-mailer - how to send_mail() asynchronously in Django

Is there a way to send a mail using django-mailer instantly? As I see it now, send_mail() of django-mailer puts the mail on the queue and I need to run a periodic task that runs after every X minutes to send all mails in the queue. I have a small…
dowjones123
  • 3,695
  • 5
  • 40
  • 83
1
vote
3 answers

from_email is not working in django EmailMessage and using EMAIL_HOST_USER instead

I am trying to use django's builtin Email class EmailMessage to send an email with attachment like below def send_email(path, from_email, to_list, file_name): subject = 'Output for csv file %s'%(file_name,) body = 'Please find the attached…
Shiva Krishna Bavandla
  • 25,548
  • 75
  • 193
  • 313
1
vote
1 answer

No reverseMatch error in password reset in Django?

I have seen several posts and tried all the solutions suggested for fixing this issue. but I still have the following error. I am using Django 1.6. NoReverseMatch at /accounts/password/reset/Mw/3q6-5e4aba3a21e3b697aca2/ Reverse for…
eagertoLearn
  • 9,772
  • 23
  • 80
  • 122
1
vote
0 answers

django-signal send email with instance data doesn't work

Good Day I have model with signal: class ParticipantModel(models.Model): TYPE_USER = ( ('O', 'Онлайн трансляция'), ('P', 'Персональное присутствие'), ) name = models.CharField( max_length=256, verbose_name='Имя') surname =…
1
vote
2 answers

Export django settings to my python file

I am trying to make logparser.py in django project which parses the data coming from different servers. And on running the command on terminal : $ python logparser.py This error is coming : Traceback (most recent call last): File…
Anil Arya
  • 3,100
  • 7
  • 43
  • 69
1
vote
1 answer

Django - Userena not sending email

I've installed the Userena app and have it running. I can register but no emails are being sent out. I'm overriding the signup form if that makes a difference. I'm not getting any error messages and I can see the users are being created in the…
MarioB
  • 13
  • 2
1
vote
2 answers

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…
Daniel Rosenthal
  • 1,386
  • 4
  • 15
  • 32
1
vote
1 answer

Upload files via email in Django. General algorithm

How to implement something like this: If someone send email with file in attachment to system@mail.com, this file is added automatically to database. Please general algorithm how to do or suggest existing app
Mimi Bubu
  • 19
  • 3
1
vote
1 answer

Where to store email templates?

I'm writing a Django 1.4 app that will send HTML email. I'm using Django templates to render the email content, but I'm unsure how to store the templates. I can store them in an email app (like I would other templates), but it feels silly to use a…
bvanvugt
  • 1,212
  • 1
  • 8
  • 15
1
vote
1 answer

Send an email once object meets certain criteria

[Hopefully I entitled this post correctly] I have a (sort of) 'follow' twitter thing going on. Users can follow a company profile object, which creates a follower object. class Follower(models.Model): created =…
Modelesq
  • 5,192
  • 20
  • 61
  • 88
1
vote
2 answers

Sending html emails with images using Django templates

I'm trying to use the following snippet: http://djangosnippets.org/snippets/2661/#c4539 But I encountered some errors 1 ) i cannot import MIMEImage form email. I get an error: No module named MIMEImage UPDATE: I had a file named email.py. Don't use…
nelsonvarela
  • 2,310
  • 7
  • 27
  • 43