in reply to File processing/email program
You may find that MIME::Lite or one of the other email managing modules generates fewer surprises than using system commands to do the work. Consider:
# Create the message $msg = MIME::Lite->new( From =>'me@myhost.com', To => $address, Subject => $subject, Type => 'multipart/mixed' ); # Add the text message part: $msg->attach(Type =>'TEXT', Data =>"Here's the GIF file you wanted" ); # Add the file part: $msg->attach(Type =>'TEXT', Path => $filename, Disposition => 'attachment' ); $msg->send ();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File processing/email program
by jwood_70 (Initiate) on Oct 23, 2007 at 06:09 UTC |