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
0
votes
1 answer

ssl.SSLEOFError while sending emails through Django

Settings EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_USE_TLS = True EMAIL_HOST = 'smtp.gmail.com' DEFAULT_FROM_EMAIL = EMAIL_HOST_USER = 'no_reply@domain.com' SERVER_EMAIL = 'no_reply@domain.com' DEFAULT_DO_NOT_REPLY =…
Ev.
  • 1,537
  • 1
  • 24
  • 49
0
votes
1 answer

refer to the user_email in reply to a comment

we are using django-contrib-comments in are project for communication between stuff and clients. Staff communication work's internally and I've made a custom email notification system which will notify you every time some other stuff member left a…
copser
  • 2,523
  • 5
  • 38
  • 73
0
votes
1 answer

sending email back/forth internally django

Currently I have a custom email notification implemented and it works when you post a comment you receive an email which notify you about the posted comment, now the thing is that this is happening internally in the system, so basically the staff…
copser
  • 2,523
  • 5
  • 38
  • 73
0
votes
3 answers

Django: Set E-Mail settings in view

I am trying to send a email using SMTP from Google. I already get to send a email putting the setting variables in the file "settings.py" but I need to configure these variables in a view and set them using my "Config" model. This is my model…
Nazkter
  • 1,040
  • 1
  • 11
  • 31
0
votes
0 answers

Django email: Get receiver in body

I am using EmailMultiAlternatives to send mail to a list of recipients. context = Context({'cc': cc, 'link': link}) html_template = loader.get_template('email_new.html') text_template = loader.get_template('email_new.txt') from_email = 'afeld…
af3ld
  • 782
  • 8
  • 30
0
votes
2 answers

Django 1.9.2 "reverse" error during password reset attempt

My app sits on Django 1.9.2 and Django REST Framework 3.3.2, with a single page app on the front-end. I must admit I'm new to Django but the docs are unmatched. I'm trying to implement a custom PasswordResetForm view. My strategy is as follow: User…
Davy
  • 87
  • 1
  • 11
0
votes
1 answer

django 1.10 get individual objects out of query

I have a model set up for subscribers to get on our mailing list. Whenever a new blog post is created I want to email the user. How do I get individual email addresses and first names from the model to use to email, each person individually? I want…
Robby
  • 183
  • 2
  • 2
  • 13
0
votes
1 answer

django 1.10 render template html class

After a user fills out a form on my site, I user render(request, html, context). I'd like to return the user to the same part of the page after they register. I am not using any front end frameworks (like angular - thats my next project). How would…
Robby
  • 183
  • 2
  • 2
  • 13
0
votes
1 answer

Asynchronious email sending in Django

I'm trying to figure out how to send email asynchroniously so User don't have to wait until email is sent. I've installer celery and django-celery-email and added django-celery-email into my settings.py - djcelery_email. I've also changed database…
Milano
  • 18,048
  • 37
  • 153
  • 353
0
votes
1 answer

django - persisting an email to database to be able to send it later?

In my django project I want to store an email in the database to be able to retrieve it later and send it. I'm implementing a throttling mechanism for sending emails to many users. I thought it would be as easy as storing 'to, from, subject, body'…
Martin Massera
  • 1,718
  • 1
  • 21
  • 47
0
votes
2 answers

Is it possible to send date triggered email in Django?

I am wondering if it is possible to send an email before a certain date? To explain a bit more we have talks that run every month on the second Wednesday of the month and they have a title and speaker. I would like to email the members (email…
Dean
  • 8,668
  • 17
  • 57
  • 86
0
votes
1 answer

Use variables in send_email()

I use html as message in one email and pass some variables like this: subject = 'Some Subject' plain = render_to_string('templates/email/message.txt',{'name':variableWithSomeValue,'email':otherVariable}) html =…
M. Gar
  • 889
  • 4
  • 16
  • 33
0
votes
0 answers

send mail to user for password_reset

I am trying to implement password_reset (message sending to user for reset his password), but after writing email, nothing has send and the user is redirected to home... My view.py : ... from django.contrib.auth.views import password_reset,…
Zoulou
  • 303
  • 2
  • 16
0
votes
1 answer

Errno 11001] getaddrinfo failed

JUST tried to link an email address to the simple form and the error continued to occur which I couldn't fix yet. can you please help me to understand what does this error actually mean. and the possible way to get rid of it. …
Lokesh Tiwari
  • 61
  • 1
  • 8
0
votes
1 answer

Sending email based on attribute - Django 1.8

I'm trying to pass a check-box selection from the template to the view for an email function. Each check-box in the template corresponds to a category in the database. Contacts Database is like this: NAME | CATEGORY | EMAIL john | man |…
tim
  • 379
  • 2
  • 5
  • 14