Thanks, Karen. Looks like I was a little cart before the horse on this portion of the project.
On Apr 21, 6:28 pm, Karen Tracey <kmtra...@gmail.com> wrote: > On Wed, Apr 21, 2010 at 6:09 PM, Nick <nickt...@gmail.com> wrote: > > I am working on a form that takes a little data and throws it in a > > database, but before all that jazz it sends an email to a list/tuple > > of recipients. This is going very well except the send_mail process is > > raising a very annoying and persistent error: > > > "to" argument must be a list or tuple > > > Here is the view: > > > def short_form(request): > > [snip] > > recipients = ['ntankers...@opubco.com'] > > > send_mail(name, year_created, home_city, home_state, > > recipients) > > [snip] > > Now, it looks like it is getting hung up on recipients. This is a> tuple, one > value. What am I missing here? > > Perhttp://docs.djangoproject.com/en/dev/topics/email/#send-mailthe "To:" > field is the 4th positional parameter to send_mail, you've specified > recipients as the 5th. (It isn't exactly clear that some of the earlier ones > match up in meaning to what they are supposed to be either, even if they are > OK as far as datatype goes.) > > Karen > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group > athttp://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.