HP3000-L Archives

October 1997, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Chris Bartram <[log in to unmask]>
Reply To:
Date:
Tue, 28 Oct 1997 20:25:55 -0500
Content-Type:
Text/Plain
Parts/Attachments:
Text/Plain (57 lines)
 In  [log in to unmask] writes:

> Does anyone know of a way to send e-mail from the MPE CI Prompt within a
> batch job.
>
>  It would be nice if I could xeq a command like:
>
> :IF FINFO('/Reports/Dailyjobs/xxxrep.txt','Exists') = True
> :   SENDMAIL Envelop=/maillist/thisjobsusers.txt; &
> :                     Text=/msgtxt/thisjobsmsg.txt; &
> :                     Subject="Daily xxx Report attached"; &
> :                     Attach=/Reports/Dailyjobs/xxxrep.txt
> :Endif

<plug alert>

Since Compaq is already a NetMail customer (in Europe at least -not sure
about US?) it's easy in netmail; just one example:

!ECHO SEND THISMSG > infile
!ECHO Daily xxx Report attached >> infile
!PRINT /maillist/thisjobusers.txt >> infile
!ECHO // >> infile
!ECHO EXIT >> infile
!RUN NetMail.sys.threek;stdin=infile

The big advantage netmail has over other solutions is that mail is queued
locally; that is, the other solutions depend on access to a "relay" host
to deliver the mail. If this host is down or not reachable for some reason,
it's up to your job stream/jcl to determine this (if it's possible - depending
upon what kind of status these programs return) and figure out what to do
then. NetMail keeps a local queue and handles retries itself - automatically.
Even if there's a network failure of some sort, your message will get through
as soon as it's back up.

Another plus, is that since NetMail is MIME compliant, it'll automatically
encode any special files you might also want to attach to a message, so if
you wanna send a postscript or pcl report, or even a spreadsheet attached
to the message, NetMail'll encode it appropriately for you.

</plug>

      -Chris Bartram
       3k Associates, Inc.


______________________/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_
  Chris Bartram        Sales (US):   800 Net-Mail    Fax:+1 703 451-3720
   ______                         +1 703 569-9189    mailto:[log in to unmask]
  /__ |  \__________   Sales (Europe):+44(1480)414131 Fax:+44(1480)414134
 /  / | / ________     Sales (Pacific):+61 3 9489 8216 Fax:+61 3 9482 5124
|  /_ |<  ______       Tech Support:+1 703 569-9189  Fax:+1 703 451-3720
 \ __)| \ ___          mailto:support at 3k.com       Me: rcb at 3k.com
  \______/Associates,  6901 Old Keene Mill Rd Suite 500 Springfield VA 22150
_________________Inc._/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_
Gopher: gopher.3k.com   Anon-FTP: ftp.3k.com  WWW: http://www.3k.com/

ATOM RSS1 RSS2