OPENVMS MAIL - need to send an email that has an Attachment AND an email body

I am able to send one file as Either an Attachment or as the body of the email.  I need to use the MAIL utility to perform both in one email.
ie:
I want to send FILE.DOC as the attachment and TEXT.TXT as the body of the email.
    right now -- I can't do both.
 To send FILE.DOC as the attachment - I first UUENCODE it - then mail the UUENCODEd version:
   mail DKD2:[EMAILLTRS]FILE.UUE "KMB2" /SUBJECT="MY SUBJECT"
 To send it as the body of the text - I send the NON UUENCODEd (original) file:
  mail DKD2:[EMAILLTRS]FILE.DOC "KMB2" /SUBJECT="MY SUBJECT"
  (.DOC just an extension - the file would be an ASCII TEXT file)

Any idea how to send FILE.DOC as the attachment and a different file (TEXT.TXT) as the body of the email?
SRG041808Asked:
Who is Participating?
 
nociSoftware EngineerCommented:
0
 
nociSoftware EngineerCommented:
uuencode files btw are bracketed in begin/end block so you can concatenate multiple blocks to a file, but they need to be split during reception. and the individualy uudecoded.

Besides uuencode, there is mime which more or less automates this whole process for multiple attachements.
metamail has mimencode, here is a source for metamail info.
ftp://thumper.bellcore.com/pub/nsb/
0
 
SRG041808Author Commented:
I can't get to the page to review the metamail info:
Internet Explorer cannot display the webpage
            also tried command prompt:
C:\Documents and Settings\Administrator>FTP THUMPER.BELLCORE.COM
Unknown host THUMPER.BELLCORE.COM.

I'm not sure though that my question was understood.  I am able to send multiple files using OPENVMS's MAIL utility. By using UUENCODE - I am able to send the file(s) as an attachment.  If I do not UUENCODE the file - it embeds in the email as the body of the email.
  *note: The receiver of the email is not using the OPENVMS MAIL utility to open the email.  They have popped it to their PC and are most likely using OUTLOOK to read the email.
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
nociSoftware EngineerCommented:
Ok that's bitrot... (i need to find a new link..)

I forgot to mention this one:
http://h71000.www7.hp.com/doc/73final/6017/6017pro_016.html

From VMS V7.3 there is a mime utillity in VMS.
You can use that to create & extran attachment to a mail message.

BTW. A mail message (VMS Mail, Unix Mail etc.) consists of a header + body.
If the body has a certain layout (previously UUencoded blobs), currently MIME
then the most mailers (Outlook etc) can handle the text blobs as an attachment.
You can find further reference to mime here:
https://secure.wikimedia.org/wikipedia/en/wiki/Multipurpose_Internet_Mail_Extensions

So attachments AS such do not exist, attachments are merely special formatted blobs in the body of a mail message.
You can run the MIME tool with:

MIME :== $MIME
MIME

will give you a prompt, type help there for more info.

Help mime will show you how to create the symbol and start mime like above.
0
 
SRG041808Author Commented:
Thank you.  I am working with the info now that you sent links for (the openvms_notes_mime.html was most helpful).  I've done some testing and have been able to successfully send an email that had both a "body" and an attachment.  I'm going to leave this case open a little bit longer though - so I can get process in place fully and submit additional questions if needed.
0
 
nociSoftware EngineerCommented:
No problem.
0
 
nociSoftware EngineerCommented:
any progress? More questions?
0
 
SRG041808Author Commented:
Sorry I didn't get back to you.  Yes, I am able to create/send a Mime email that contains multiple attachements along with a 'body'.  Thank you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.