- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: MAIL to internet address from DCL script
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
Discussions
Discussions
Forums
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
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
тАО02-13-2006 01:04 AM
тАО02-13-2006 01:04 AM
MAIL to internet address from DCL script
I'm having a little trouble using MAIL within a DCL script.
Basically, I'm running AUTOGEN FEEDBACK and want to email the report to the sysadmins in the team. However, the email addresses are standard internet addresses rather than host specific VMS mail.
When I enter the address "admins@blah.com" from an interactive MAIL session, everything works fine. However, from within my script - nothing !!
The line in my script to send the mail is :-
$ MAIL SYS$SYSTEM:AGEN$FEEDBACK.DAT ADMINS@BLAH.COM /SUBJECT="AUTOGEN FEEDBACK"
I'm presuming that the problem revolves around the "@" sign, but I don't know how to get around it.
Any ideas ??
Regs,
Paul.
(PS - Thanks in advance !!).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 01:20 AM
тАО02-13-2006 01:20 AM
Re: MAIL to internet address from DCL script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 01:28 AM
тАО02-13-2006 01:28 AM
Re: MAIL to internet address from DCL script
Got a little further than before - actually got an error message now :-
$ MAIL SYS$SYSTEM:AGEN$FEEDBACK.DAT SMTP:"ADMINS@BLAH.COM" /SUBJECT="AUTOGEN FEEDBACK"
%TCPIP-E-SMTP_BADADDR, recipient address is illegal; unparsed string: :@
%TCPIP-E-SMTP_ABORT, SMTP session aborted
Paul.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 01:36 AM
тАО02-13-2006 01:36 AM
Re: MAIL to internet address from DCL script
yes, it is about the @ sign, and the way around this is the VMS way around any special syntax or characters:
enclose the entire recipient specification in double quotation marks In a script you put THAT in quotation marks, and you put double those to specify them IN the string.
That results in """username@internet.address"""
hth
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 01:37 AM
тАО02-13-2006 01:37 AM
Re: MAIL to internet address from DCL script
the correct syntax is:
$ MAIL SYS$SYSTEM:AGEN$FEEDBACK.DAT "SMTP%ADMINS@BLAH.COM" /SUBJECT="AUTOGEN FEEDBACK"
Regards
Heinz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 02:09 AM
тАО02-13-2006 02:09 AM
Re: MAIL to internet address from DCL script
I concur, from long experience, with Jan and Heinz.
The correct syntax (presuming that you are using a base SMTP transport, not a message router such as MX) is:
$ mail filename "SMTP%""username@domain"""
Please note the multiple quotes. Quotes WITHIN a quoted string must be doubled.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 02:22 AM
тАО02-13-2006 02:22 AM
Re: MAIL to internet address from DCL script
And how many years has it been since the
"SMTP%" has actually been _required_ by MAIL
on an Internet address?
My advice: Stop reading replies after Feb 13,
2006 14:36:22 GMT, when "the correct answer"
was posted.
Of course, it's still legal to specify
"SMTP%" (or "WINS%", or whatever your mailer
goes by), but you can easily see for yourself
if it's needed or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 02:26 AM
тАО02-13-2006 02:26 AM
Re: MAIL to internet address from DCL script
$ mail/sub="x" file "us@wim.com"
from within the script, in batch or interactive, and without any problem.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 02:54 AM
тАО02-13-2006 02:54 AM
Re: MAIL to internet address from DCL script
Thanks for all the input - I just happened to try my script on another host, just by wrapping the email address in double-quotes, and the mail came through straight away.
Given that interactive MAIL works on the original server, by my script doesn't, is there a logical or something that might be missing on the other host ?
(Sorry to change the problem !!)
Regs,
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2006 03:05 AM
тАО02-13-2006 03:05 AM