output from script into email

  • From: "Zelli, Brian" <Brian.Zelli@xxxxxxxxxxxxxxx>
  • To: "oracle-l (oracle-l@xxxxxxxxxxxxx)" <oracle-l@xxxxxxxxxxxxx>
  • Date: Fri, 31 Jul 2015 18:50:27 +0000

I am sending myself a space report and it isn't formatting very well. I use:

mail -t "Mail Subject" myemailaddress < sp_used.txt

The sp_used.txt is the output of a script I run. How do I format it better. I
saw uuencode but can't seem to use it correctly in my mail statement.

Brian



This email message may contain legally privileged and/or confidential
information. If you are not the intended recipient(s), or the employee or
agent responsible for the delivery of this message to the intended
recipient(s), you are hereby notified that any disclosure, copying,
distribution, or use of this email message is prohibited. If you have received
this message in error, please notify the sender immediately by e-mail and
delete this email message from your computer. Thank you.

Other related posts: