How to send e-mail asynchronously

55 views
Skip to first unread message

2me

unread,
May 28, 2016, 10:21:49 AM5/28/16
to Django users
I have to implement a thread in order to test if (temperature>maximmum) it sends an email . 
I have done a python file which reads temperature and as  a begining I have tested an aplication that  sends email when I access to its URL . 
BUt I have no idea how to this into a thread !!! please help me 



 

Akhil Lawrence

unread,
May 28, 2016, 10:15:50 PM5/28/16
to Django users
You can create a celery task fro this. See this link for more details.

Luis Zárate

unread,
May 28, 2016, 11:12:20 PM5/28/16
to django...@googlegroups.com
I wrote something for send async notification that works with celery

https://github.com/luisza/async_notifications

There is a demo project and some ideas about how to implement it.

If you like you can use it and if you want to extend do it and let me know for incorporate you're code.
> --
> 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/b1b51b16-2318-4022-9b20-495547931635%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

--
"La utopía sirve para caminar" Fernando Birri



Reply all
Reply to author
Forward
0 new messages