| | |
Email attachment and add text inside the mail
Please support our Shell Scripting advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Aug 2007
Posts: 34
Reputation:
Solved Threads: 0
Hi All
Anyway to add a note inside the email saying here is your file after attching a file in unix??
For example my script is fine attaching the excel file but i would like a message inside the mail too and not in the subject title.
Anyway to add a note inside the email saying here is your file after attching a file in unix??
For example my script is fine attaching the excel file but i would like a message inside the mail too and not in the subject title.
•
•
•
•
/usr/bin/uuencode $adhocreport $adhocreport | /usr/bin/mailx -s "$subject" $destination
•
•
Join Date: Aug 2007
Posts: 34
Reputation:
Solved Threads: 0
•
•
•
•
should be a parameter to add content in mailx
have you looked at the manpage?
Sorry i have looked and cant find anything which would do this. If i try echoing this stop the mail attachment etc, also i dont want the message inside the subject line.
Im trying to achieve something like this
•
•
•
•
to: joe.bloggs@hotmail.com
subject: Report of Adhoc
mailattachment.xls
Please find the report above etc blah blah.
![]() |
Other Threads in the Shell Scripting Forum
- Previous Thread: helps with getopts
- Next Thread: output of echo command has an unwanted newline character
| Thread Tools | Search this Thread |






