[Tutor] Trouble with a Recipe ...
Garry Bettle
garry.bettle at gmail.com
Tue Aug 25 15:37:52 CEST 2009
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.bettle at gmail.com", "Subject": "Testing", "From": "garry.bettle at gmail.com"}, text="Testing")
but I get the following error:
Traceback (most recent call last):
File "<pyshell#17>", line 1, in <module>
email_it_via_gmail( {"To": "garry.bettle at gmail.com", "Subject":
"Testing", "From": "garry.bettle at gmail.com"}, text="Testing")
File "C:\Documents and Settings\Garry\Desktop\recipe-576824-1.py",
line 50, in email_it_via_gmail
+ headers.get("Bcc", [])
TypeError: cannot concatenate 'str' and 'list' objects
Sorry, but I according to the recipe I don't need a Bcc.
Sorry, again, for such a simple question!
Cheers,
Garry
More information about the Tutor
mailing list