Re: [Tutor] Attaching an uploaded file to an email

2005-02-20 Thread Liam Clarke
Yeah, you really have to see a few examples to get the hang of creating MIME emails, this is one area where I think the Python docs, quite frankly, stink. I had enough trouble getting attachments from a MIME email, let alone adding one. (But, if I recall correctly, a MIME email has a distinct stru

Re: [Tutor] Attaching an uploaded file to an email

2005-02-20 Thread Martin Walsh
Tim Wilson wrote: Hi everyone, Hi Tim, I'm a newb, first time posting, so please take any of the following advice at face value # Collect form information form = cgi.FieldStorage() requestername = form["requestername"].value fromaddr = form["email"].value itemname = form["itemname"].value

[Tutor] Attaching an uploaded file to an email

2005-02-19 Thread Tim Wilson
Hi everyone, I'm working on a little Python CGI project, but I think I'm stuck on some of the MIME magic. I've got a Web form that collects various bit of text and, optionally, a file can be uploaded too. The file could be almost any kind of document from jpeg to PDF. The form data get passed to