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

send_mail is working while EmailMultiAlternatives.send is not

I am finding this very odd. This piece of code doesn't send two email messages. The first way using send_mail is working find. While using EmailMultiAlternatives isn't sending any messages. I've already debugged user.email, and it is using failed…
Jonas Geiregat
  • 5,214
  • 4
  • 41
  • 60
0
votes
0 answers

How to upgrade a Pre-South Django App to its Post-South version

What if I used an app that didn't use South migration in let's say version 0.4 and wanted to upgrade it to the latest version of let's say 0.6 which has included a migration directory that has 0001_initial and 0002_some_new_fields_added. How would…
Val Neekman
  • 17,692
  • 14
  • 63
  • 66
0
votes
1 answer

direct_to_template equivalent for email?

I'm writing a little shortcut function to basically do the same thing as direct_to_template for sending email: from django.template import Context, loader, Template def direct_to_email(to, subject, from_email, template_name, parameters): …
Naftuli Kay
  • 87,710
  • 93
  • 269
  • 411
0
votes
1 answer

Will Django send me an email if exception rises at admin site?

Django documentation says: When DEBUG is False, Django will email the users listed in the ADMINS setting whenever your code raises an unhandled exception and results in an internal server error (HTTP status code 500). But does this includes…
z4y4ts
  • 2,535
  • 4
  • 21
  • 24
0
votes
1 answer

Django Mail isnt sending anymore

I used to have a working system where all mails got delivered and everything worked. I didnt change nothing but now the Mails arent sending anymore. I checked the mail connection on another server and the same data still works and gets send. Do I…
FLYAX
  • 141
  • 12
0
votes
1 answer

DJANGO - "SMTPNotSupportedError: SMTP AUTH extension not supported by server" - error

I have an app where I'm testing email sending with django. The django project is still and development and I'm using the default sqlite3 as database. I have configured the EMAIL_BACKEND, EMAIL_HOST, EMAIL_HOST_USER, EMAIL_HOST_PASSWORD, EMAIL_PORT,…
0
votes
2 answers

Django - Mail is not sent. Port changes to 25 but in seetings.py is set to 587

Email is not sent. What is interesting... before (like 3 mos ago) entire code worked perfectly fine. Settings: DEBUG = True EMAIL_HOST = 'smtp.gmail.com' EMAIL_PORT: 587 EMAIL_HOST_USER = 'xyz@gmail.com' EMAIL_HOST_PASSWORD = 'xyz' EMAIL_USE_TLS =…
Maxwell
  • 138
  • 1
  • 9
0
votes
0 answers

Django Docker allauth Cannot assign requested address

I building an app using Django 4.0.4, allauth, Postgres, and Docker with Docker Compose. My Dockerfile contains: FROM python:3.10.4-slim-bullseye # Set environment variables ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED 1 # Set work…
panos
  • 328
  • 1
  • 4
  • 16
0
votes
1 answer

How do I send anchor tag links in email template in django

I am fairly new to Django and I use Django 4.2. I am trying to send email as rendered templates from views.py. The email sends but in all plain text. The link does not show in the email as a link, it shows as a plain html text. views.py send email…
0
votes
0 answers

Django: password reset not sending any email

I am trying to implement the 'password-reset' functionality using django. I set up my urls: path('account/reset_password/', auth_views.PasswordResetView.as_view(), name='reset_password'), path('account/reset_password_sent/',…
Orl13
  • 339
  • 4
  • 15
0
votes
0 answers

How to attach dataframe to django.core.email

I am creating a dataframe and trying to send it as attachment, however I get the error message: TypeError: argument should be a str object or an os.PathLike object returning str, not df = df[['id','unit_id','receipt']] with…
Adrian
  • 71
  • 5
0
votes
1 answer

Email error: Message is not sending to the email instead it is printing in the terminal

When I am registering as a new user or want to change my password, then the Message which is needed to be sent to the email is showing in the terminal instead. Here is the terminal picture: enter image description here Here is the views.py…
0
votes
1 answer

Receiving email content with in a template using Django contact form

I have set up a fully operational contact form and now I would like to render the users inputs into a html template, so when I receive the email it is easier to read. How do I do this? Do I link the template below some where, or link the form with…
David Henson
  • 355
  • 1
  • 10
0
votes
0 answers

SMTPSenderRefused at /contacts

I am using Django. I want to send email via html contact form. And I am facing this error: SMTPSenderRefused at /contacts (530, b'5.7.0 Must issue a STARTTLS command first. p6-20020a1c5446000000b003b47e75b401sm7708347wmi.37 - gsmtp',…
0
votes
0 answers

How did Django send_mail work without EMAIL_HOST_PASSWORD?

I tested Django send_mail() function which I needed for a project. I had the EMAIL_HOST set to the SMTP server provider my company uses, EMAIL_PORT to 587, EMAIL_USE_TLS to True. Both EMAIL_HOST_USER and EMAIL_HOST_PASSWORD was set to "" (empty…
Alraj
  • 170
  • 9