Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > attachment email script problem

Thread Tools

attachment email script problem

Posts: n/a

We have been using the below script to auto email some reports from UNIX to
a management group.
Its been in place for sometime and luckily for me it hasn't needed any

The 1st section would include that particular report as the body of the
email and the other 2 reports as attachments.
It goes to people who are on PCs and NCD Unix terminals. Within the past
week the 1st report which had been the
body of the email turned into a 3rd attachment on the email and there was no
longer a body to the email for the PC
users only. The people who were on the NCD terminals didn't notice a change
and received the email as normal.

After a short discussion with the system admin, he suggested maybe the
encoding of the email was be manipulated to strip
the body of the email. This is where I get in over my head. Because I can
send the email manually through my NCD
with the exact attachments, recipients, etc and it is received as it
normally was with the 1st report in the body of the email.
I'm guessing that maybe I need to change some of the setting in the script
like the type, or encoding to correct the problem.
But, just am not sure what to do??? Any suggestions would be greatly
appreciated! Thanks!

use lib "lib";
use MIME::Lite;
$msg = new MIME::Lite
From => '(E-Mail Removed)',
To => (join',','(E-Mail Removed)','(E-Mail Removed)'),
Cc => '(E-Mail Removed)'),
Subject => 'PNP Daily Gain/Loss Results',
Type => 'TEXT',
Path =>
"/home/pnp/gp22/SCRIPTS_regular/gainloss/reports/GP22_all_pwgl_rept.txt ",
Encoding => '7bit';
attach $msg
Type => 'TEXT',
Filename =>"GP22_pwgl_user_rept.txt";
attach $msg
Type => 'TEXT',
Filename =>"pnp_readme.txt";
exit 0;

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Email Video attachment problem Fred Computer Information 1 03-17-2008 10:26 PM
Newbie Q: Is it possible to send an email + attachment from inside script (no forms) Paul Moore Javascript 5 06-04-2007 08:01 PM
Problem with Email::MIME and Email::MIME::Attachment::Stripper ecureuil Perl Misc 0 05-28-2006 01:47 AM
free script to email form results with attachment? ASP General 1 11-28-2004 10:42 AM
attachment in email problem John Computer Support 3 08-21-2003 05:49 AM