Operating System - OpenVMS
1752587 Members
3787 Online
108788 Solutions
New Discussion юеВ

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 8
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
New Member
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.
.