Solved

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

Posted on 2010-11-30
8
1,565 Views
Last Modified: 2013-12-06
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?
0
Comment
Question by:SRG041808
  • 5
  • 3
8 Comments
 
LVL 39

Expert Comment

by:noci
ID: 34246052
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
 

Author Comment

by:SRG041808
ID: 34248236
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
 
LVL 39

Expert Comment

by:noci
ID: 34248735
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
 
LVL 39

Accepted Solution

by:
noci earned 500 total points
ID: 34248751
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

Author Comment

by:SRG041808
ID: 34251340
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
 
LVL 39

Expert Comment

by:noci
ID: 34251885
No problem.
0
 
LVL 39

Expert Comment

by:noci
ID: 34346774
any progress? More questions?
0
 

Author Comment

by:SRG041808
ID: 34346916
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

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Many people tend to confuse the function of a virus with the one of adware, this misunderstanding of the basic of what each software is and how it operates causes users and organizations to take the wrong security measures that would protect them ag…
As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now