in reply to Attach a file using Mail::Bulkmail

Create the message using MIME::Lite or similar:
my $msg = MIME::Lite->new(..options..); $msg->attach(..file..); my $msg_mime = $msg->as_string;
You probably don't want to do this with big files, as it's all in memory. Then send this with Mail::Bulkmail:
my $bulk = Mail::Bulkmail->new(..options..); $bulk->HFM(1); # Headers From Message # send as usual
Hope this helps...

gav^

Replies are listed 'Best First'.
Re^2: Attach a file using Mail::Bulkmail
by spx2 (Deacon) on Jul 12, 2007 at 14:20 UTC

    this thread is absolutely excelent i'd like to thank all who contributed to it. i looked all day for this. altough HFM may be kind of old , currently it's called header_from_messages();