[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: Mailing SQR report from unix
- Subject: Re: Mailing SQR report from unix
- From: Rajvirendra Singh <rvsingh@HOTMAIL.COM>
- Date: Mon, 12 Jul 1999 06:49:58 PDT
Hi there,
Try following code. I cut and paste it from working shell script.
$4 is subject and $5 is email address. Hope it will help you.
uuencode /tmp/$tempname.spf /tmp/$tempname.spf >/tmp/atchmntmsg.txt
#
# HP
#
if (-e /usr/bin/mailx) then
/usr/bin/mailx -s "$4" $5 </tmp/atchmntmsg.txt
#
# IBM or SUN
#
else if (-e /usr/bin/mail) then
/usr/bin/mail -s "$4" $5 </tmp/atchmntmsg.txt
else
echo "ClearReports: Email Error: Unable to mail file."
endif
Raj
>From: "Karimundackal, Liz J." <lkarimundackal@JHANCOCK.COM>
>Reply-To: SQR-USERS@list.iex.net
>To: Multiple recipients of list SQR-USERS <SQR-USERS@list.iex.net>
>Subject: Mailing SQR report from unix
>Date: Fri, 9 Jul 1999 10:19:59 -0400
>
>Hi all,
> I am trying to mail the report created by my SQR program from the
>same program.
> My code is :
>let $command = 'uuencode letter.htm letter.htm > letter.uue'
>call system using $command #encode_status
>let $command = 'mail lkarimundackal@jhancock.com < letter.uue'
>call system using $command #mail_status
>
>My intention is to send the report as an attachment. I tried the uuencode
>and the mail command
>from the unix prompt and it worked great, but when I do the same commands
>from SQR, the
>encoded file goes as text, so the mail has a lot of junk as the text. All
>the files, including the uuencoded
>file is created properly from SQR and both commands have a success return
>code.
>
>Any help will be appreciated.
>Thanks in advance,
>Liz J Karimundackal
>(617) 572-8288
>e-mail : lkarimundackal@jhancock.com
>
_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com