in reply to Catalyst email with attachments

Is there a way with which I can send email with attachments, with out opening the attachment files

How could that possibly be done? The attachments have to be opened for reading, for the mail program to attach them. Possibly you could zip them or tar them, so no matter what you send the content type will be the same.


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Replies are listed 'Best First'.
Re^2: Catalyst email with attachments
by remiah (Hermit) on Oct 05, 2011 at 12:13 UTC
    Do you want to know the mime type just like file command on unix shows it's file info? File::MimeInfo will return mime type.
    use strict; use warnings; use File::MimeInfo; my $mime_type = mimetype('takeda.mp3'); print "#$mime_type#\n";
    #audio/mpeg# is it's answer. I used this module today and it seems handy.