[Tutor] Trouble with a Recipe ...

2009-08-25 Thread Garry Bettle
Hi, Hope this email finds everyone well - roll on the weekend. I'm trying to run http://code.activestate.com/recipes/576824/ I'm in IDLE and I try: email_it_via_gmail( {To: garry.bet...@gmail.com, Subject: Testing, From: garry.bet...@gmail.com}, text=Testing) but I get the following error:

Re: [Tutor] Trouble with a Recipe ...

2009-08-25 Thread Vern Ceder
At the top in the docstring it says, 'To, Cc and Bcc values must be *lists*'. That means instead of To: garry.bet...@gmail.com, you need To: [garry.bet...@gmail.com] i.e. a list containing the destination address. That's so that you could send to, cc and bcc more than one address. HTH,

Re: [Tutor] Trouble with a Recipe ...

2009-08-25 Thread Garry Bettle
Many, many thanks Vern. For the life of me, I couldn't remember [] are for lists: I was trying with (). Guess I picked a bad day to stop sniffing glue! Cheers, Garry On Tue, Aug 25, 2009 at 15:55, Vern Cedervce...@canterburyschool.org wrote: At the top in the docstring it says, 'To, Cc and