tags:

views:

21

answers:

1

Hi i an building an mbox file from a db blob and would like to add an hyperlink to the Attachement header

I am building the header like this

msg=email.message_from_string(blob)
msg["Content-Disposition"]="attachment; filename=filename.txt;"

What do i need to add to add a http or ftp hyperlink for the filename?

Thnks

+1  A: 

If the attachment is MIME encoded along with the message, you can't have an http/ftp hyperlink, because the file does not reside on any FTP or HTTP server.

Kui Tang
k thanks i suspected this.
locojay