Steven Armstrong wrote: > On 08/09/06 17:56, Joe wrote: > > I would like to set up a python script that runs every night to send > > out an email subscription. I would like to access a Django model that > > has the user's email addresses, as well as use the Django sendmail > > function. Can someone help me understand what imports/path setup I > > have to do to get this working? (Note: I will not be setting up the > > Cron job, nor do I know now. I will simply be giving a python script > > to our IT staff for them to set up).
Also, if you're using Django's send_mass_mail, note that "As in send_mail(), recipients in the same recipient_list will all see the other addresses in the e-mail messages's 'To:' field." (from http://www.djangoproject.com/documentation/email/#send-mass-mail) I think if you want to use a "Bcc:" header, straight Python may be the way to go. As the e-mail doc says, have a look at http://www.python.org/doc/current/lib/module-smtplib.html (and http://www.python.org/doc/current/lib/module-email.html). Regards, John --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---