- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Attaching a file and sending it using mail
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
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
тАО04-23-2007 04:36 PM
тАО04-23-2007 04:36 PM
Attaching a file and sending it using mail
I am writing a script(DCL script) to get some data in a file and I want to add a command to send this file as an attachment, in this script.
Normal Mail command helps me to send this data as the mail body . but how can I send it as an attachment?
Please suggest the options for doing this
Regards
Jayakrishnan G Naik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2007 04:58 PM
тАО04-23-2007 04:58 PM
Re: Attaching a file and sending it using mail
You may use it as a starter...
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2007 08:03 PM
тАО04-23-2007 08:03 PM
Re: Attaching a file and sending it using mail
http://oswald.knoppers.googlepages.com/mailsymhome
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2007 09:15 PM
тАО04-23-2007 09:15 PM
Re: Attaching a file and sending it using mail
Improve on the above adding a subject.
$mail /subject="some comment"
Remember that you cant send the log of a batch job this way as the log is still open.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2007 09:18 PM
тАО04-23-2007 09:18 PM
Re: Attaching a file and sending it using mail
it's not that simple, if you want to put multiple attachments into you mail.
You can create the mail with plain DCL, but the format is quite sensitive.
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2007 09:31 PM
тАО04-23-2007 09:31 PM
Re: Attaching a file and sending it using mail
Example-C,C++ SMTP Mail Message Sender With MIME File Attachments
http://h18000.www1.hp.com/support/asktima/communications/009F15E8-A8CE0B38-
1C02A1.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2007 12:05 AM
тАО04-24-2007 12:05 AM
Re: Attaching a file and sending it using mail
Maybe also the public domain MPACK program is of interest here:
< http://nchrem.tnw.tudelft.nl/openvms/software2.html >
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2007 12:23 AM
тАО04-24-2007 12:23 AM
Re: Attaching a file and sending it using mail
< http://wwwvms.mppmu.mpg.de/vmsdoc/help/ >
follow the MAIL -> MIME link.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2007 12:37 AM
тАО04-24-2007 12:37 AM
Re: Attaching a file and sending it using mail
FAQ home:
http://64.223.189.234/vmsfaq
You can download the whole document as a text or PDF and easily skim or search the document.
In this case...
6.2 How do I send or read attachments in VMS MAIL?
Is there any way to send or read mail with files as
attachments from VMS?
Not directly with the OpenVMS MAIL facility, but there
are several other options:
o Install PINE, available commercially from Innosoft
or free from Andy Harper. With PINE you can both
send and receive MIME messages, if you have the
appropriate viewers available.
o http://www.process.com/
o http://www.agh.cc.kcl.ac.uk/files/vms/pine-vms/
o ftp://ftp2.kcl.ac.uk/pub/vms/pine-vms/
o If you are working from an X Windows display, you
can use the OpenVMS version of Netscape Navigator or
Mozilla. The mail download protocol chosen to access
the mail server from the Navigator or Mozilla mail
client can be POP or IMAP, with the former causing
messages to be downloaded while the latter permits
messages to be retained on the mail server. Most
folks prefer IMAP for this reason.
o MPACK/MUNPACK. To send a MIME mail, construct the
message with attachments manually using MPACK. You
cannot send the resulting file directly through MAIL
because an extra blank header line will be inserted
between your message and the OpenVMS MAIL headers,
which will cause the message to appear as plain text
in most mail programs. Some TCP/IP stacks provide
a work around for this problem, and if that doesn't
work, you should generally be able to force the
message directly into the SMTP port of your mail
machine. Examples of both methods are in:
o http://saf.bio.caltech.edu/pub/software/openvms/mmail.com
To read a MIME mail message, open it in MAIL,
extract it to a file, then use MUNPACK to break
out and decode the attachments.
MPACK/MUNPACK tools are also available on OpenVMS
Freeware V5.0.
o With OpenVMS V7.2 and later, use the MIME tool
supplied with OpenVMS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2007 01:08 AM
тАО04-24-2007 01:08 AM
Re: Attaching a file and sending it using mail
Edit the file encode.c,
there are two times lines producing
"Message-Id" and "Mime-Version" headers.
Just change the order: first Mime-Version, then message-Id, and voila, the TCPIP$SMTP_mailshr will happily handle Mpack's output like MIME's output: no premature end of headers by an empty line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2007 06:35 PM
тАО05-02-2007 06:35 PM
Re: Attaching a file and sending it using mail
I am not able to find the site to download Pine for vms
If anybody have pine software for vms please zip it and attach for me.
Thanks & Regards
Jayakrishnan G Naik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2007 09:45 PM
тАО05-07-2007 09:45 PM
Re: Attaching a file and sending it using mail
Thanks for the valuable reply
Regards
Jayakrishnan G Naik