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

Django email is giving error ''list' object has no attribute 'splitlines''

This is my email sending code in my view: def send_email(): if dasa == 1: send_mail( 'Test available', available_tests, 'from_email', ['to_email'], fail_silently=False, …
Kovy Jacob
  • 489
  • 2
  • 16
-1
votes
2 answers

Default regex django uses to validate email

recently, I started playing with Django and created a custom form for user registration. In that form to create the field for email I use something like email = forms.EmailField() I observed that address such as a@a.a is considered invalid by the…
-1
votes
1 answer

How to change email settings in django dynamically

I want to make an email sender app that took user email and password and send an email to multiple recipients. I am not sure whether it is possible to do because we have to provide Email_HOST_USER in settings. If anyone can help me with explanation…
saba
  • 43
  • 7
-1
votes
1 answer

send_email() Display attach in the mail

At the current stage the email is fully working, however, when receiving the actual mail the image is not attached, rather is name is displayed. I wold like to display the attachment in order to be able to download it. def publication(request): …
Simone
  • 21
  • 4
-1
votes
1 answer

I cant able to send email using django even I gave all permission from google side

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = 'smtp.gmail.com' EMAIT_PORT = 587 EMAIL_HOST_USER = 'your@gmail.com' EMAIL_HOST_PASSWORD = 'password' EMAIL_USE_TLS = True EMAIL_USE_SSL= False send_mail(msg,"Thank-You…
-1
votes
1 answer

Creating Dynamic Tuple for Sending Mass Email Django using send_mass_mail

I see a lot of documentation and example to create mass email like below message1 = ('That’s your subject #1', 'That’s your message body #1', 'from@yourdjangoapp.com', ['to@yourbestuser1.com', 'to@yourbestuser2.com']) message2 = ('That’s your…
Rohit Prasad
  • 33
  • 3
  • 7
-1
votes
1 answer
-1
votes
1 answer

HTML template in email

I am using Django 1.8.4 and this question is about custom scripts. I am trying to send an HTML table using a template I made, which needs a array as context. However, I do not know how to pass the array onto the html template. from…
Brian Pace
  • 39
  • 1
  • 9
-2
votes
1 answer

How to get email address of all users in Django

I am learning django and I am stuck with this problem. How do I get the email address of all the users in Django. The user can be of any type like superuser, general user etc. I tried the following but I am not getting email address of all the…
Anshul Gupta
  • 265
  • 2
  • 12
-2
votes
1 answer

Error in sending email using gmail smtp in Django app

I set up everything as the Django documentation but when I test sending an email.It works but When I check my inbox I find out that I sent and revived from to the same email address. Here is the settings.py EMAIL_BACKEND =…
cool mann
  • 21
  • 4
1 2 3
21
22