Operating System - OpenVMS
1753632 Members
5730 Online
108798 Solutions
New Discussion юеВ

Re: Attachment using MAIL

 
Richard Hains
New Member

Attachment using MAIL

I would like to know if it is possible to attach more than one file using MAIL command.
Using the $tcpip$uuencode I was able to attach one file but I will need to attach four files to one mail.
Is this possible?

Thanks
Richard
7 REPLIES 7
Volker Halle
Honored Contributor

Re: Attachment using MAIL

Richard,

the OpenVMS MIME utility (available since OpenVMS V7.2) allows you to create MIME mails with as many attachments as you like.

$ HELP MIME

You can create a MIME encoded message and the send that message with the standard OpenVMS MAIL utility.

Volker.
Richard Hains
New Member

Re: Attachment using MAIL

Our VMS version is V7.3.
Do you have any samples of how to attach more than one file?
I am creating a com file, and I tried with MIME but when I receive the file in Outlook I am not getting the attachments.

Thanks
Volker Halle
Honored Contributor

Re: Attachment using MAIL

Richard,

the MIME documentation can be found here:

http://h71000.www7.hp.com/doc/731FINAL/6489/6489pro_014.html#index_x_711

$ MIME:==$MIME
$ MIME x.x
MIME> NEW x.x ! use /NOEDIT to skip editor
MIME> add/BIN file1.bin
MIME> add/bin file2.bin
MIME> save
MIME> exit

Now you have a MIME-encoded file x.x, which you can mail with:

$ MAIL x.x "user@node"/SUBJ="subject"

You can look at the MIME message on OpenVMS with:

$ MIME x.x
MIME> LIST
...
MIME> EXTR/ATT=n ! to extract attachment #n

Volker.
Richard Hains
New Member

Re: Attachment using MAIL

Thanks for your help, but.....
When I received the mail, the attached files did came inside the body of the mail, instead as attachments.
Other thing is when I type
NEW MY_MSG.MSG /NOEDIT
I got:
%CLI-W-NOQUAL, qualifiers not allowed - supply only verb and parameters
\NOEDIT\

Do you know who can I solve these two issues?

Thanks
Steven Schweda
Honored Contributor

Re: Attachment using MAIL

I don't do this, but you might investigate
the "ask the wizard" article which Google
found for me ("vms OR openvms mail
attachment"):

http://h71000.www7.hp.com/wizard/wiz_4492.html

If nothing else, it should give you a new
keyword for which to search ("SFF").

I would not be amazed if someone had
automated this procedure a bit for greater
convenience,


My (old) MIME utility ("MIME Version: V1.8")
says:

MIME> help new

NEW

Format: NEW [filename]

Creates a new message. If a file is not specified, you are prompted
for a file name. The default text editor will then be invoked to add
the text portion of the message. Use the ADD and REMOVE command to
add MIME encoded attachments, such as images or sound files.

Additional information available:

/EDIT


so I assume that /NOEDIT is an erroneous
suggestion or a newer feature.
Volker Halle
Honored Contributor

Re: Attachment using MAIL

Richard,

I'm using MIME V1.9 (OpenVMS Alpha V8.2).

MIME> sho vers
MIME Version: V1.9

There are patches for MIME for the various versions of OpenVMS Alpha (look for VMSxx_MIME-V0x00) and OpenVMS VAX V7.3 (VAXMIME01_073).

Which version of OpenVMS and MIME are you using ?

Volker.

Dave Laurier
Frequent Advisor

Re: Attachment using MAIL


If you are looking for examples, then have a look at the sendmail script at http://dcl.openvms.org.

This script allows one to send MIME or SMTP messages and allows files to be attached.

A direct link to the script:

http://dcl.openvms.org/stories.php?story=04/09/22/8507303