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

Emails in my Django app send in the shell, but not when app is running

This exact code works in the shell, but does not work in my view and I have no idea why. There is no error message. The email just never gets sent. from django.core.mail import send_mail send_mail('Account Created','Your account has been…
user10421193
  • 217
  • 2
  • 11
0
votes
2 answers

Django sends emails twice after form submission

I was trying to send emails when a form is submitted in my app, and I managed to do it but for some reason, it sends it twice every time. After some search and debugging I think I know where the problem is but I don't know why. So the email sending…
0
votes
0 answers

Unable to get send_mail to send an email message Django

I posted a question earlier where I asked how to get my email to send and was told that it's the provider, so I tried 3 providers and the send_mail and/or EmailMessage function doesn't work with any of them. So, I strongly think it's something…
user11846186
0
votes
1 answer

django email confirmation error: TemplateResponseMixin requires either 'template_name' or 'get_template_names()'

I have a django project with a customUser model (email / password), and I'm trying to get email verification links working. They were working before, but now for some reason the path is failing. When you sign up for an account on my site you get an…
Martin
  • 1,336
  • 4
  • 32
  • 69
0
votes
1 answer

How to send report mail like Google

I have a web using Django framework run in localhost, I want web send email automatically to a email address, but I have a trouble in config EMAIL_HOST, EMAIL_HOST_USER, EMAIL_HOST_PASSWORD and EMAIL_PORT in settings.py this is settings.py I…
Huy Vu The
  • 123
  • 2
  • 2
  • 10
0
votes
0 answers

django mail function returning an error "SMTPserver disconnected -Connection unexpectedly closed"

I am trying to send mailto my user but django send_mail() function through an error. I tried gmail smtp ass well as yahoo. but unable to find what the problem is?? Form is perfectly working and data goes to database whenever any enquiry made. This…
0
votes
1 answer

sending mail with attachment but the attachment is not send only the body is sent

I'm sending a mail with pdf attached in my application but at the receiver end can receive only the body not the attachment This is the error I received while running the script but the mail is sent Traceback (most recent call last): File…
White_Wolf
  • 55
  • 5
0
votes
0 answers

Django email not sending mail

I created a view for email that worked for sometime but recently stopped sending mails. However I can see the mail in the console. I don't know what is wrong. I have used both send_email and Emailmessage but none of them work. views.py def…
Srvastav4
  • 177
  • 2
  • 12
0
votes
1 answer

how to fix a problem where a django template isn't displayed correctly in the email

I have a template which is supposed to display an html template for a reset password. I do receive the email, but the result is not the template itself but the code inside the template. I've tried to see if there was any error in the html file, but…
0
votes
1 answer

Django's html email's inline css not working

I am trying to send a mail through HTML email. Everything is working perfectly, but the inline css of html file is not getting rendered in actual email. views.py subject = 'Activate Your Account.' htmly =…
FightWithCode
  • 2,190
  • 1
  • 13
  • 24
0
votes
0 answers

Django - EmailMessage working in shell but dont working in view with same data

I want to send mail after form valid. So i using EmailMessage class . My code like this. EmailMessage(subject='ddd', body='ff2', from_email='test@gmail.com', to=['test@gmail.com'], reply_to=['test@gmail.com'], headers={}).send() This code work…
Utkucan Bıyıklı
  • 1,072
  • 7
  • 17
0
votes
1 answer

Authenticate through OTP sent to email of user

I want to send an OTP to the user's email Id. I checked I can send the eamil through the Django's send_eamil() method with random no. I am using the following to generate the random no. from django.utils.crypto import get_random_string otp =…
chirag soni
  • 936
  • 10
  • 20
0
votes
0 answers

unable to send email to other user emails account in django

i previously i was using gmail smtp to send mail**(working fine)** but now i created new account in sendgrid and im using free plan in my django project this my complete setting about send grid EMAIL_HOST = 'smtp.sendgrid.net' EMAIL_HOST_USER =…
madu kp
  • 89
  • 1
  • 7
0
votes
0 answers

Create txt file template with django email

I have a question according to emails generated in my Django application. I created an HTML file, but I have question with my txt file and tags used. In my HTML file: links look like: My link bold looks like: My…
ChocoBomb
  • 301
  • 4
  • 15
0
votes
3 answers

Sending 1000+ emails in Django

Here is my setup right now: connection = mail.get_connection() maillist = [] # my real setup is a little more complex for-loop, but basicly I add all recipients to a list. for person in object_list: mail_subject = "Mail subject here" …
hermansc
  • 728
  • 8
  • 20