Solved

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

Posted on 2010-11-30
8
1,674 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

 
LVL 40

Accepted Solution

by:
noci earned 500 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

In a recent article here at Experts Exchange (http://www.experts-exchange.com/articles/18880/PaperPort-14-in-Windows-10-A-First-Look.html), I discussed my nine-month sandbox testing of the Windows 10 Technical Preview, specifically with respect to r…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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.
Suggested Courses

617 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