Hello all! I have a rather simple question that has me stumped (for about 2 hours now)
I am using the MIME:Lite package (http://theoryx5.uwinnipeg.ca/CPAN/data/MIME-Lite/MIME/Lite.html) to Send reports via email from a *nix box. What I am looking to-do is send the text of a report in the body of the email as well as an attachment, but keep coming up short. Here is what I have so far $g_mail = MIME::Lite->new ( From => "[EMAIL PROTECTED]", To => $g_mail_to, Subject => $g_mail_subject, Type => 'multipart/mixed' ); $g_mail->attach(Type => 'TEXT', Data => $g_mail_file ); # Here is where I am trying to put the text of the report in the body of the email $g_mail->attach(Type => 'TEXT', Path => $g_mail_file, Filename => $g_mail_file, Disposition => 'attachment' ); # Here is where I attach the file $g_mail->send("sendmail"); -Ron -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]