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
0 answers

SMTPAuthenticationError at /members/register after deployment in heroku ut works in local host

I am getting the below error when I am trying to send an email to a user. It is working fine in localhost, but after deploying it to Heroku I am getting this error. My less secure app is turned on. SMTPAuthenticationError at /members/register (534,…
0
votes
1 answer

DJango mail working in local but not in production

Below is my code which sends a mail to my users: mail = EmailMultiAlternatives(subject=subject, body=text_content, from_email="email@host.com", to=["email@host.com"],…
0
votes
1 answer

How to get currently logged-in user in signals.py file?

I'm making a todo app and one of it's functionalities is to send an email to the user that his task was overdue. Part of the views.py file: from .models import Todo from django.utils import timezone from .signals import overdue def index(request): …
0
votes
1 answer

Django SMTP Send Email Configuration

I already setup the email. It was working perfectly but after sometime it is not working and sending the mail. I don't know where the problem was created. Can someone help me out with this?? EMAIL_BACKEND =…
0
votes
0 answers

How to send emails in django using asyncio?

I'm trying to send emails asynchronously in Django using asyncio but the below code is not working for me. async def new(request): if request.user.profile.role == 'sa' or request.user.profile.role == 'e': if request.method == "GET": …
Maninder Singh
  • 425
  • 6
  • 14
0
votes
1 answer

Django EmailMessage.content_type = 'html' keep newlines?

How can I keep new lines in a Django's EmailMessage that has a content_type = 'html'? I need the html content type because of signatures. Email: Welcome User, this is a welcome email. Is rendered properly when sent as a text but when sent as an…
Milano
  • 18,048
  • 37
  • 153
  • 353
0
votes
2 answers

Email in Django not sending

I'm trying to send an email with Gmail SMTP, all my email settings are correct but the email is not send and I receive no exceptions. I'm pulling my values from an HTML form. Also, I noticed when I try sending a mail from the shell terminal, it…
0
votes
0 answers

How to email a unique link to user django allowing them to confirm availability for an event (and update the database as well)

Here is the problem: I have a model called invite and a model called person. An invite is associated to a person and a person only and it has a field called status. How can I send generate a url that I can then send to the person through an email so…
giaggi
  • 542
  • 5
  • 16
0
votes
1 answer

Module "django.core.mail.backends.console" does not define a "EmailBacked" attribute/class

i am trying to code reset password of my web application now I am facing this error mentioned in tagline. in my settings.py I have. EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBacked' my URLs are: path('password-reset/',…
zohaib_webdev
  • 33
  • 1
  • 8
0
votes
0 answers

Python Django Email

Good day, I have a Django app that sends emails. I used a google app password for my EMAIL_HOST_PASSWORD, it works perfectly fine, but the from_email always set to my email which I used to create the app password instead of the email it gets from…
0
votes
0 answers

Django: Sending email from user logged in

I have been reading on how to set up email in django. I want to have a page where I input a user's email, subject and message and the email gets delivered. The email should be from the user who has logged in. Is it possible to achieve this in…
Alpha
  • 237
  • 1
  • 2
  • 7
0
votes
0 answers

'list' object has no attribute 'splitlines' Django send_email

I'm trying to send a mass email to all id's in the database This is my code: def email_sent(request): email_id_fans = models.email_id.email_address #print(email_id_fans) subject = "sub" email_text =…
0
votes
0 answers

How to send an email automatically to someone who write a new post at blog right after he create a new post

There are quite a few youtube or instructions online but I could not find anything to apply this to blog/create. What I mean by that, I would like to have email to be sent automatically to the guy who create a new post. Here is the blog/views.py…
Peter Kam
  • 95
  • 8
0
votes
0 answers

How to send iframe via Django email?

I have a HTML template of my e-mail message with embded google map, via iframe. How can I send email with iframe integration in django?
0
votes
2 answers

Django-Email, sending multiple email depends on Email ID

Anyone know how to solved my issue, Im working with DJango-email with multiple recipient. Sending email in multiple recipient accounts from my DB are working, but now I want to send email and the email:body are depending on the Data ID. This are the…
Adbul
  • 43
  • 1
  • 9