HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

mailing attachments from VMS

 
SOLVED
Go to solution
Tony Logan_1
Occasional Contributor

mailing attachments from VMS

how can I mail a document from VMS mail as an attachment so that when it get to outlook etc it is an attachment.
8 REPLIES
labadie_1
Honored Contributor

Re: mailing attachments from VMS

You have several methods, one is the following

How to send a MIME encoded attachment from OpenVMS SMTP mail

http://h18000.www1.hp.com/support/askkcs/hpcg/215_0_86966633_3489817.html
labadie_1
Honored Contributor

Re: mailing attachments from VMS

my preferred is this one

[Compaq C] Example-C,C++ SMTP Mail Message Sender With MIME File Attachments

http://h18000.www1.hp.com/support/asktima/communications/009F15E8-A8CE0B38-1C02A1.html
Pat Moran
Occasional Visitor
Solution

Re: mailing attachments from VMS

Hi,

A convenient way to send a document using VMSmail is to first uuencode it. You can use the uuencode utility provided by TCPIP, SYS$SYSTEM:TCPIP$UUENCODE.EXE.

e.g. if you want to mail TEST.ZIP

$ MCR TCPIP$UUENCODE TEST.ZIP TEST.UUE

$ MAIL/subj="test with attachement" TEST.uue smtp%"xxx.xxx@xxx.com"


Martin P.J. Zinser
Honored Contributor

Re: mailing attachments from VMS

Hi,

I really like Perl to do such stuff ;-)

Have a look at

http://zinser.no-ip.info/vms/sw/notes/perl_mod.htmlx

The second example shows a very basic script to
send messages in various formats to a distribution list.

Greetings, Martin
Willem Grooters
Honored Contributor

Re: mailing attachments from VMS

The dcl-only way:

$ MIME :== $SYS$SYSTEM:MIME.EXE
$ MIME
MIME> ADD .... (whatever, use switches. See help within MIME
MIME> SAVE
MIME>^Z
$ MAIL
MAIL> SEND
MAIL>^Z

Or: use some program
Using a browser, I use YAHMAIL (http://wasd.vsm.com.au/wasd/) to do this (attachements are from PC, though)
Willem Grooters
OpenVMS Developer & System Manager
Jan van den Ende
Honored Contributor

Re: mailing attachments from VMS

Tony,

maybe slightly off-topic but related:

a function of MAIL that I never saw documented, in print nor in HELP, is the FOREIGN qualifier.

$ MAIL /FOR.

If recipient tries to read, he/she DOES get instuctions how the handle this!

Wonderfull for mailing SAVESETS, ZIP files, indexed files etc. etc. Never tried, but would be surprised if it doesn't also handles Mickey-ware formatted files correctly..

fwiw,

Jan
Don't rust yours pelled jacker to fine doll missed aches.
Ian Miller.
Honored Contributor

Re: mailing attachments from VMS

MAIL SEND/FORIEGN works between VMSmail systems only. Useful neverless. However I think its not offically supported.

The MIME utility or the C program previously referenced are the answer to the original question.
____________________
Purely Personal Opinion
Uwe Zessin
Honored Contributor

Re: mailing attachments from VMS

I, too, don't know if MAIL/FOREIGN is now supported between DECnet nodes, but I know a little about its history:

It came from the VAX P.S.I. product (Packet Switching Interface - X.25) and allowed 'file transfers' without the need to link the systems via DECnet.
.