Alternately, you can install the 'mutt' command line e-mail client (if it isn't 
already installed), and it will natively handle attachments for you.  For 
example, from the command line:

  echo "This is a test." | mutt -s "Subject Goes Here" -a 
dir/to/your_file_attachment1.txt -a dir/to/your_file_attachment2.txt 
[email protected]

-- 
Christopher P. Cashell
EIT Platform Engineering                                                E-Mail: 
[email protected]
Infrastructure Monitoring, Management, and Automation Division  EIT ~ 
Converging People and Technologies
West Corporation


-----Original Message-----
From: van Zee Harald [mailto:[email protected]] 
Sent: Thursday, August 20, 2015 2:40 AM
To: spectrum
Subject: AW: [spectrum] Set script email attachment

Hi Kavi,

I do this like this:

$MailBodyMessage="Some Text"
$MailFile=/ca/spectrum/custom/_scripts/_logFiles/autostart.log
$MailFileName=autostart.log

(echo $MailBodyMessage; uuencode $MailFile $MailFileName) | mail -s "....." 
$NotifyTo

Muliple files like:

(echo $MailBodyMessage; uuencode $MailFile $MailFileName; uuencode $MailFile2 
$MailFileName2) | mail -s "...." $NotifyTo


Best regards,

Harald

-----Ursprüngliche Nachricht-----
Von: kavi arasu [mailto:[email protected]] 
Gesendet: Mittwoch, 19. August 2015 19:09
An: spectrum <[email protected]>
Betreff: [spectrum] Set script email attachment

Hi All,

Is it possible to attach files in email triggered by setscript. I would like to 
modify the emailing part in setscript to attach some files in the email 
notification.

Had anyone tried this. Please let me know your suggesstions on the same.

Thanks,
Kavi
---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

Reply via email to