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

Perl is environmentally friendly - it saves trees

Replies are listed 'Best First'.
Re^2: File processing/email program
by jwood_70 (Initiate) on Oct 23, 2007 at 06:09 UTC
    Thanks for that tip. It works a treat. Took me ages to get it installed with all pre-reqs and finally found it easier to to install Perl & GCC from Sunfreeware than using the default Solaris Perl.