Have you install the sendgrid backend?

what is the error message you are getting


On Thu, Apr 20, 2017 at 8:48 AM, shahab emami <royarame...@gmail.com> wrote:

> but that doesn't work for me too.
>
> i sign up in sendgrid and this is my new settings.py
>
> EMAIL_HOST = 'smtp.sendgrid.net'
> EMAIL_HOST_USER = 'my_account'
> EMAIL_HOST_PASSWORD = 'mypassword'
> EMAIL_PORT = 587
> EMAIL_USE_TLS = True
>
> not on localhost and not on heroku
>
>
> On Thursday, April 20, 2017 at 1:38:53 AM UTC+4:30, suabiut wrote:
>>
>> I am also using sendgrid it works very well.
>>
>> On Thu, Apr 20, 2017 at 6:56 AM, shahab emami <royar...@gmail.com> wrote:
>>
>>> but it's free for 30 days. what i have to do after 30 days?
>>>
>>> On Wednesday, April 19, 2017 at 6:18:38 PM UTC+4:30, Thiago Luiz Parolin
>>> wrote:
>>>>
>>>> i am using sendgrid for send emails...the free service works very well
>>>> for me...there is a paid version too..
>>>> sendgrid can be integrated into django
>>>>
>>>> https://sendgrid.com/docs/Integrate/Frameworks/django.html
>>>>
>>>>
>>>>
>>>>
>>>> 2017-04-19 8:46 GMT-03:00 Carl <pyt...@nexuspro.ca>:
>>>>
>>>>> As a counter-perspective, we have this working with a paid G Suite
>>>>> (formerly Google Apps) account. *Important* We had to register the IP
>>>>> address of our server with G Suite. This Google support document outlines
>>>>> the process:
>>>>>   SMTP relay: Route outgoing non-Gmail messages through Google
>>>>>   https://support.google.com/a/answer/2956491?hl=en
>>>>>
>>>>> In terms of Django, our settings.py file has the following relevant
>>>>> settings:
>>>>>
>>>>> # To have error messages auto-sent via email:
>>>>> SERVER_EMAIL = 'myn...@mypaid-gmail.com'
>>>>> ADMINS = [('MyWebServer', 'myn...@mypaid-gmail.com'),]
>>>>>
>>>>> EMAIL_USE_TLS = True
>>>>> EMAIL_HOST = 'smtp-relay.gmail.com'
>>>>> EMAIL_PORT = 587
>>>>> EMAIL_HOST_USER = ''
>>>>> EMAIL_HOST_PASSWORD = ''
>>>>> DEFAULT_FROM_EMAIL = 'myn...@mypaid-gmail.com'
>>>>> DEFAULT_TO_EMAIL = 'myn...@mypaid-gmail.com'
>>>>>
>>>>> Hope this helps!
>>>>>
>>>>> -------- Original Message --------
>>>>> Subject: Re: send email with django
>>>>> Local Time: April 19, 2017 7:00 AM
>>>>> UTC Time: April 19, 2017 11:00 AM
>>>>> From: red...@gmail.com
>>>>> To: django...@googlegroups.com
>>>>>
>>>>>
>>>>> Also, don't fail silently it would be helpful to see actual error that
>>>>> happens...
>>>>>
>>>>> On 19.04.2017 00:25, shahab emami wrote:
>>>>>
>>>>> hello
>>>>>
>>>>> i want to send email using django. i used to send email with pour
>>>>> python before but now i can't do that in django.
>>>>>
>>>>> i have search about this and i have seen some tutorials on youtube  in
>>>>> last two days but i cant do this .
>>>>>
>>>>> this is in my settings.py :
>>>>>
>>>>> EMAIL_USE_TLS = True
>>>>> EMAIL_HOST = 'smtp.gmail.com'
>>>>> EMAIL_HOST_USER = 'my_g...@gmail.com'
>>>>> EMAIL_HOST_PASSWORD= 'my_password'
>>>>> EMAIL_PORT = 587
>>>>>
>>>>> and this is my send email:
>>>>>
>>>>> from django.core.mail import send_mail
>>>>> def click(request):
>>>>>     send_mail(
>>>>>         'shahab',
>>>>>         'Here is the message.',
>>>>>         'my_g...@gmail.com',
>>>>>         ['shaha...@yahoo.com'],
>>>>>         fail_silently=True
>>>>>     )
>>>>>     return HttpResponseRedirect('index')
>>>>>
>>>>> but it doesn't work.
>>>>>
>>>>> I am running this code on localhost. but i doesn't work on heroku too.
>>>>> i changed allow less secure app to on in my gmail account and
>>>>> i went to this page too and  i clicked on continue :
>>>>> https://accounts.google.com/DisplayUnlockCaptcha
>>>>>
>>>>> can anybody tell me:
>>>>> what am i missing ?
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Django users" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to django-users...@googlegroups.com.
>>>>> To post to this group, send email to django...@googlegroups.com.
>>>>> Visit this group at https://groups.google.com/group/django-users.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-users/65e0ab09-ff5a
>>>>> -4ed5-89d6-e5e0991b9ea0%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/django-users/65e0ab09-ff5a-4ed5-89d6-e5e0991b9ea0%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>>
>>>>> --
>>>>> Jani Tiainen
>>>>>
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Django users" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to django-users...@googlegroups.com.
>>>>> To post to this group, send email to django...@googlegroups.com.
>>>>> Visit this group at https://groups.google.com/group/django-users.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-users/6a7f0307-4144
>>>>> -b649-cdc8-8e679e89ceca%40gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/6a7f0307-4144-b649-cdc8-8e679e89ceca%40gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Django users" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to django-users...@googlegroups.com.
>>>>> To post to this group, send email to django...@googlegroups.com.
>>>>> Visit this group at https://groups.google.com/group/django-users.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-users/1ZSWqeCcOU2qC
>>>>> nLKSrDLkDiH9XND1svarKZef71AehQS2PjMMiImZZBHjPt6AADghhHiSI5ez
>>>>> GkKzMk-zf3NqObwRccrXTFd5t-L-4SyXlk%3D%40nexuspro.ca
>>>>> <https://groups.google.com/d/msgid/django-users/1ZSWqeCcOU2qCnLKSrDLkDiH9XND1svarKZef71AehQS2PjMMiImZZBHjPt6AADghhHiSI5ezGkKzMk-zf3NqObwRccrXTFd5t-L-4SyXlk%3D%40nexuspro.ca?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users...@googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/django-users/2a63b15e-3218-4bb0-91ed-624ec2a87df1%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/2a63b15e-3218-4bb0-91ed-624ec2a87df1%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/1e07f162-8c8c-4133-91b2-a3f6e7e00c7c%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/1e07f162-8c8c-4133-91b2-a3f6e7e00c7c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPCf-y5O7n4koaNwASj1bJCcbGN67QOR6m4V6MdwhoJc3KrTzA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to