- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Using VMS MAIL CC Field in mail batch generated me...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 08:44 PM
10-13-2004 08:44 PM
Using VMS MAIL CC Field in mail batch generated messages
We have a large number of mail notifications from our various monitoring processes. We now want to CC various managers on some of the e-mails. VMSmail does have a CC: option for interactive use. How can we use it in a command procedure ?
With regards
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 09:22 PM
10-13-2004 09:22 PM
Re: Using VMS MAIL CC Field in mail batch generated messages
looks like there is no access to the /CC qualifier directly from DCL.
As a workaround, you can use a construct like this in a command procedure:
SEND/CC/NOEDIT filename-to-send.tmp
to-username
cc-username
subject string
$
This invokes the MAIL utility and causes it to read commands from SYS$INPUT, which is your command procedure. You just need to make sure to provide the correct input line by line, which the MAIL utility will be asking for.
If you need to specify varying filenames or username lists, you could write the above commands into a temporary tmp.COM file and then execute it with @tmp.com
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 11:28 PM
10-13-2004 11:28 PM
Re: Using VMS MAIL CC Field in mail batch generated messages
As an alternative to Volker's suggestion, make use of a distribution list file.
$ MAIL file-spec "@USERS"
where the file USERS.DIS contains the user names of the people you want to send mail to.
You can also combine a distribution list with explicit user names.
$ MAIL file-spec user,"@USERS"
The adressees however will appear in the "To:" field of the mail message, and not in the "CC:" field.
Greetz,
Kris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2004 11:52 PM
10-13-2004 11:52 PM
Re: Using VMS MAIL CC Field in mail batch generated messages
The lack of a DCL qualifier is pretty much an oversight.
Soft, internal, nudges to the developpers at the time (1998, 2002) were ignored, and customers never requested it officially, so there we are :-(.
You may want to check out the DELIVER tool for some incremental functionality from VMSnail (like forward to a group).
If those monitoring jobs are strictly batch jobs, then creating an intermediate file is the way to go.
If there are images/code involved which today perhpas spawn mail, then I['d encourage you to check out calleable mail to get access to CC and to becme more efficient in the process. It is not _that_ hard, if you've programmed itemlists before.
There is a silly work-around / fooled-you solution:
$ define cc " "
$ mail/subj="whatever" filename user1,cc,user2
It will *look* okay; the received message will have
To: USER1,CC,USER2
but will not have a CC line.
Cheers,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 12:10 AM
10-14-2004 12:10 AM
Re: Using VMS MAIL CC Field in mail batch generated messages
We do use the CC field, hence our scripts look like the one suggested by Hein i.e
Invoke mail utility and use
rgds
Mobeen