Search Results

Search: Posts Made By: suthera
136,135
Posted By suthera
Not sure what your $1 variable is. I would try: ...
Not sure what your $1 variable is. I would try:

export MAILTO=myemail@me.com
export FROM="me@me.com"
export SUBJECT="Test"
export BODY="index_image.htm"
export ATTACH="WirelessEmail1.jpg"
(...
136,135
Posted By suthera
I have a play around with the script and the...
I have a play around with the script and the following works: (a fluke obviously!)

1. HTML email body (in this case defined within the Shell Script)
2. Multiple attachments (HTML Excel etc)
3....
136,135
Posted By suthera
Thanks Ygor, nothing brought up in the search...
Thanks Ygor, nothing brought up in the search apart from uuencode sadly. My usual command to attach files to an email is:

uuencode $CSV_FILE $(basename $CSV_FILE)
) | if [ $DATABASE_LIVE = 1 ] ...
136,135
Posted By suthera
Thanks for both your replies. Ygor's reply is the...
Thanks for both your replies. Ygor's reply is the one that seems to be working better for me, but the systems I use are very clunky so don't discount methyl's answer.

With Ygor's code I am now...
136,135
Posted By suthera
sendmail with attachments
Hi,

I got the following script from Ygor on this site:


#!/usr/bin/ksh

export MAILTO="email_address"
export CONTENT="/export/home/aisdba/email_body.html"
export SUBJECT="subject of email"...
12,313
Posted By suthera
Thanks anchal_khare I modified the email...
Thanks anchal_khare

I modified the email subject on the second emailing code and it worked.
12,313
Posted By suthera
uuencode mailx - send multiple emails
The following is an extract from one of my Shell Scripts which uses uuencode and mailx to send an email with multiple attachements:

uuencode $LOG_REPORT $(basename $LOG_REPORT)
uuencode...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 08:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy