[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
I read the postings from this user group every day and save the ones I find
might be useful at some point in the future but have not had occassion to post
any questions myself until today. What is elm?
-Thanks
"Warner, Dave (CCB)" wrote:
> If you have elm installed you can send attachments like this:
>
> let $command = 'echo "[include /tmp/file1.txt text/plain]\n[include
> /tmp/file2.pdf application/pdf]" | elm -s "Subject" email@address.com'
> call system using $command #mail_status
>
> More files can be included with a \n separating them.
>
> The user who is running the SQR must first run elm once interactively before
> it can be run in "batch mode" like this.
>
> Elm takes care of the uuencoding for you, unlike mail or mailx.
>
> > ----------
> > From: Karimundackal, Liz J.[SMTP:lkarimundackal@JHANCOCK.COM]
> > Subject: Mailing SQR report from unix
> >
> > 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
> >
begin:vcard
n:Bedell;Jeffrey K.
tel;fax:(315) 443-3553
tel;work:(315) 443-9273
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:jkbedell@ais.syr.edu
x-mozilla-cpt:;31856
fn:Jeffrey K. Bedell
end:vcard