Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Attach a file using Mail::Bulkmail

by gav^ (Curate)
on May 02, 2002 at 18:57 UTC ( [id://163634]=note: print w/replies, xml ) Need Help??


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();

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://163634]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-23 11:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found