How to send e-mail asynchronously

已查看 58 次
跳至第一个未读帖子

2me

未读,
2016年5月28日 10:21:492016/5/28
收件人 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

未读,
2016年5月28日 22:15:502016/5/28
收件人 Django users
You can create a celery task fro this. See this link for more details.

Luis Zárate

未读,
2016年5月28日 23:12:202016/5/28
收件人 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



回复全部
回复作者
转发
0 个新帖子