I want send a resume as attachment.

in my form.html:

 <input id="my_resume" name="my_resume" type="file" />

in my controller.py:

def POST(self):
        try:
            i = web.input()
            web.sendmail('[email protected]', '[email protected]', 'My subject',
'my message', attachments=[dict(i.my_resume)])
            raise web.seeother('/thanks')
        except Exception:
            raise

    when I sent, I receive this error:

    dictionary update sequence element #0 has length 1; 2 is required

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to