Re: E-mail sending... but.. not sending?

2019-07-09 Thread Jani Tiainen
Hi.

Looks like your backend isn't right if you see message in the console.

Also if using gmail you have allowed insecure apps?

ti 9. heinäk. 2019 klo 17.47 grwhumphries 
kirjoitti:

> I've got a bit of a mystery.  I've got a Django Wagtail project with
> Spirit as an added app.   I'm trying to get the e-mail system working...
>
> I've included the following in settings/base.py
> EMAIL_NAME = 'myem...@gmail.com'
>
> EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
> EMAIL_USE_TLS = True
> EMAIL_HOST = 'smtp.gmail.com'
> EMAIL_HOST_USER = EMAIL_NAME
> EMAIL_HOST_PASSWORD = PASSWORD
> EMAIL_PORT = 587
> DEFAULT_FROM_EMAIL = EMAIL_NAME
>
> ADMINS = (
> ('You', EMAIL_NAME),
> )
>
> MANAGERS = ADMINS
>
>
> I then ran the following test
>
> *from django.conf import settings*
> *from django.core.mail import send_mail*
>
> *send_mail('test','test message', 'myem...@gmail.com
> ',['otherem...@gmail.com '])*
>
>
> The output from this in the console suggests the e-mail sent...
>
> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: test
> From: myem...@gmail.com
> To: otherem...@gmail.com
> Date: Tue, 09 Jul 2019 14:14:42 -
> Message-ID: 
>
> test message
>
> ---
>
>
> However... nothing arrives at the e-mail address.   All email addresses
> and passwords are correct and have been double and triple checked.
>
> Any thoughts on to what I might be missing?
>
> Cheers all.
>
>
>
>
> --
> 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/22baf6e8-f873-4a56-b497-7c90621d90c0%40googlegroups.com
> 
> .
> 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/CAHn91oc_ajFHnC9Oy77ACQ0Zn-uKnNB09dyYoHwyWSD%3DfNtELQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


E-mail sending... but.. not sending?

2019-07-09 Thread grwhumphries
I've got a bit of a mystery.  I've got a Django Wagtail project with Spirit 
as an added app.   I'm trying to get the e-mail system working... 

I've included the following in settings/base.py
EMAIL_NAME = 'myem...@gmail.com'

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = EMAIL_NAME
EMAIL_HOST_PASSWORD = PASSWORD 
EMAIL_PORT = 587
DEFAULT_FROM_EMAIL = EMAIL_NAME

ADMINS = (
('You', EMAIL_NAME),
)

MANAGERS = ADMINS


I then ran the following test

*from django.conf import settings*
*from django.core.mail import send_mail*

*send_mail('test','test message', 
'myem...@gmail.com',['otherem...@gmail.com'])*


The output from this in the console suggests the e-mail sent... 

Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: test
From: myem...@gmail.com
To: otherem...@gmail.com
Date: Tue, 09 Jul 2019 14:14:42 -
Message-ID: 

test message
---


However... nothing arrives at the e-mail address.   All email addresses and 
passwords are correct and have been double and triple checked. 

Any thoughts on to what I might be missing?

Cheers all. 




-- 
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/22baf6e8-f873-4a56-b497-7c90621d90c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: mail sending

2018-11-22 Thread Joel
django-kronos is probably the easiest to do this. As mentioned, you could
create a management command to check a database or file for the time when
you want to run this, with any other data, then you'd set an interval at
which you want to check if mails need be sent, and then execute your mail
sending function if the criteria is satisfied.

On Thu, 22 Nov, 2018, 8:19 PM Jani Tiainen  Hi.
>
> Essentially you need to record the time you want your mail to be sent and
> then you need some kind of background worker to check (periodically) if
> there are any mails to be sent.
>
> Celery is one tool that can do that.
>
> I personally use simple cron job that uses django management command to
> achieve same stuff (sending emails asynchronously).
>
> Tushar Nadkar  kirjoitti to 22. marrask. 2018
> klo 8.53:
>
>> when a button is clicked , i want to send specific mail after 3 days ?
>> how can i do that in django
>>
>> --
>> 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/CAAHYEvMUPoT%2BivTkPx%2BekvksnVWo%3DiByAt48iQX8m-HjTSQMTw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAAHYEvMUPoT%2BivTkPx%2BekvksnVWo%3DiByAt48iQX8m-HjTSQMTw%40mail.gmail.com?utm_medium=email_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/CAHn91ocf3eFL7QMiXj0Mspg4zDCovE0VGaJ8-onEaRdsq02TXA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHn91ocf3eFL7QMiXj0Mspg4zDCovE0VGaJ8-onEaRdsq02TXA%40mail.gmail.com?utm_medium=email_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/CAA%3Diw_-KvAkYrF0hhKfvc_GZo_wueLrTM%2B1kCHXtQvJH8VfjQg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: mail sending

2018-11-22 Thread Jani Tiainen
Hi.

Essentially you need to record the time you want your mail to be sent and
then you need some kind of background worker to check (periodically) if
there are any mails to be sent.

Celery is one tool that can do that.

I personally use simple cron job that uses django management command to
achieve same stuff (sending emails asynchronously).

Tushar Nadkar  kirjoitti to 22. marrask. 2018
klo 8.53:

> when a button is clicked , i want to send specific mail after 3 days ? how
> can i do that in django
>
> --
> 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/CAAHYEvMUPoT%2BivTkPx%2BekvksnVWo%3DiByAt48iQX8m-HjTSQMTw%40mail.gmail.com
> 
> .
> 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/CAHn91ocf3eFL7QMiXj0Mspg4zDCovE0VGaJ8-onEaRdsq02TXA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: mail sending

2018-11-22 Thread Hari
Please check below link.It may help you..Basically you need to set up
celery.

https://stackoverflow.com/questions/9982486/django-sending-email-x-days-later

On Thu, Nov 22, 2018, 12:23 PM Tushar Nadkar 
wrote:

> when a button is clicked , i want to send specific mail after 3 days ? how
> can i do that in django
>
> --
> 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/CAAHYEvMUPoT%2BivTkPx%2BekvksnVWo%3DiByAt48iQX8m-HjTSQMTw%40mail.gmail.com
> 
> .
> 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/CAMqzjWBkvXi5-RM%3DqNQCF8bBYmUOTJgo0BMaLEkUBwqwa6Gzvw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: mail sending

2018-11-21 Thread mazz ahmed
https://stackoverflow.com/questions/28992466/send-weekly-email-notifications-to-users-regarding-any-changes-in-data

On Thu, Nov 22, 2018 at 12:06 PM mazz ahmed  wrote:

> celery is Django package check out that.
>
> On Thu, Nov 22, 2018 at 11:53 AM Tushar Nadkar 
> wrote:
>
>> when a button is clicked , i want to send specific mail after 3 days ?
>> how can i do that in django
>>
>> --
>> 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/CAAHYEvMUPoT%2BivTkPx%2BekvksnVWo%3DiByAt48iQX8m-HjTSQMTw%40mail.gmail.com
>> 
>> .
>> 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/CABuXbh-30zAd1Amrf%2BOMo_GcnQ9fd%3D%2Bg1jLFcnQfDOvhyGtmvg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: mail sending

2018-11-21 Thread mazz ahmed
celery is Django package check out that.

On Thu, Nov 22, 2018 at 11:53 AM Tushar Nadkar 
wrote:

> when a button is clicked , i want to send specific mail after 3 days ? how
> can i do that in django
>
> --
> 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/CAAHYEvMUPoT%2BivTkPx%2BekvksnVWo%3DiByAt48iQX8m-HjTSQMTw%40mail.gmail.com
> 
> .
> 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/CABuXbh-H7CXQmtNwmBhqTpHE1wZRLHpt4y0bufWJOZ9NLPswGg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


mail sending

2018-11-21 Thread Tushar Nadkar
when a button is clicked , i want to send specific mail after 3 days ? how
can i do that in django

-- 
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/CAAHYEvMUPoT%2BivTkPx%2BekvksnVWo%3DiByAt48iQX8m-HjTSQMTw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.