Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2010-11-30
8
Medium Priority
?
1,737 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 40

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 40

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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 40

Accepted Solution

by:
noci earned 2000 total points
ID: 34248751
0
 

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 40

Expert Comment

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

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
#Citrix #POC #XenDesktop #vCenter #VMware #ESX
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

772 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