Hi..
I'm (still) writting a "free webmail" script, I'm using MIME::Entity to create the outgoing mail. To add attachments to the mail I have to use this code (taken from the documentation of the module):
$top->attach(Path => $gif_path,
Type => "image/gif",
Encoding => "base64");
Since the user is uploading the file, I don't know wich type to use.. Does it make any difference if I just use "image/gif", o something like "unknown/unknown" for everything?
Also, does anyone know if there is a way to provide a filehandle instead of a path to the file, to create the e-mail? (I'm getting the filehandle from cgi->upload(), so I'd have to create a file just to delete it after)
Thanks..