Thank you, again. Now I think I have enough information to find my way  =D



On 3/30/07, xgdlm <[EMAIL PROTECTED]> wrote:
>
> > I am just not sure about how to call the shell script.
>
> I would call the shell script withing a cronjob command :
> python /path/to/sendmail.py
>
> this script would do someting roughly like :
> -----
> if there_is_a_mailing_to_send :
>  for mail in mailtosend :
>  do
>    send mail
> -----
>
> > read from a database and send the e-mails will be in the same path as
> > the view, how can I call it?
>
> in the view I won't call any system command. I would just write some
> where (in a database or in a file) if there is a mailing to send.
>
> def startsending(request):
>       ''' do someting here so cronjob would know there is a mailign to
> send '''
>       there_is_a_mailing_to_send = True
>       return HttpResponse('Your e-mails are being send shortly")
>
> xav
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to