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

Django auth_views.PasswordResetView not sending custom email template

I'm trying to send a custom email template with the reset token. But it keeps sending raw HTML no matter what I do. I have previous experience of doing exactly the same thing without any problem with the Django and Django rest framework. Here's how…
Avishka Dambawinna
  • 1,180
  • 1
  • 13
  • 29
0
votes
2 answers

I'm not receiving the password reset email link when I click on the Reset password in my Blogging Web App built using Django Framework

I'm not receiving the password reset email link when I click on the Reset password in my Blogging Web App built using Django Framework, although the info "An email has been sent with instructions to reset your password." is prompted as well. I'm…
mostlycryptic
  • 197
  • 1
  • 6
  • 20
0
votes
0 answers

Unable to display images inline using Django templates

I am trying to display images inline into mails with Django but it does not work. Here is the line that I use to display the images inline :
Tom
  • 143
  • 1
  • 11
0
votes
1 answer

How can I send email with form context in Django

I have a form in index page and i have 12 inputs in forms , so if user submits the form i need all 12 inputs in body of my email . I tried different methods and tried searching on google and youtube but could not find the solution. My urls.py: from…
0
votes
1 answer

Send Emails with html_message

I want to send HTML-email, using Django templates like this: Title Hello {{ message }} - your account is…
JEA
  • 65
  • 7
0
votes
0 answers

Test that Django sends the e-mail for password reset

Good morning, I would like to test that Django properly sends an e-mail for password reset as I have customised the routes. However I get a and the e-mail is not implemented when I test it. Here…
0
votes
0 answers

Best practices for organizing and managing Django email templates

I'm building an app with over 20 different email notifications and I want to provide a nice way for the product team to verify the copy for each of these emails. I'm considering building two views, one to list all the email templates and another to…
0
votes
1 answer

Why does my django webserver stop after trying to send password reset mail

The problem: I am setting up the "forgot password" functionality for my website but whenever it is triggered the webserver shuts down. (when I hit the "submit" it waits for a while and then exits the program, then I have to "runserver" again) The…
Vardhan Mahajan
  • 113
  • 1
  • 13
0
votes
1 answer

django email does not work and don't sent email

I am following this tutorial the aim to verify email after users register to the system. here is the code. serializers.py class RegisterSerializer(serializers.ModelSerializer): password = serializers.CharField( max_length=68,…
Talib Daryabi
  • 733
  • 1
  • 6
  • 28
0
votes
1 answer

sending a safe html with django emailmessage

Good day, I'm trying to send a html in django email, pls what more can I added to the code. the email sending is functioning well but it still shows the html tags. from celery import task from django.template.loader import render_to_string,…
0
votes
2 answers

Outlook Not Receiving Emails Sent From Django Website

My Django website has several forms which users fill out and when they submit them an e-mail is sent to my email address. This works when I use my Hotmail address as the receiving address, but not when I use my Outlook email address (the address I'd…
horse
  • 479
  • 7
  • 25
0
votes
0 answers

Special characters in django allauth subject line

I am using allauth's ResetPasswordForm for password reset process. This form's save method sends the password reset email. I customized the password reset template to use it in Turkish, so it includes some special characters. The email message…
Gunce Su
  • 13
  • 5
0
votes
1 answer

Proper File Structure For Sending E-Mails In Django

I'm sending many e-mails from within my Django views like this if form.is_valid(): form.save() # email contents first_name = form.cleaned_data['first_name'] surname = form.cleaned_data['surname'] …
horse
  • 479
  • 7
  • 25
0
votes
0 answers

Email Verification in Django when a new user signs up

I am creating a user registration page for my website. I want to send an email verification mail to the mail the user inputs while registering. I tried many solutions but nothing seems to work for me. My code: views.py def registerPage(request): …
0
votes
1 answer

Email Sends In Development But Not In Production

I am able to send these automated emails through Dajngo while in my production environment, though in development I get the error [Errno 101] Network is unreachable Exception Location: /opt/alt/python38/lib64/python3.8/socket.py in…
horse
  • 479
  • 7
  • 25