- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Using MIME with attachments
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2011 10:25 AM
07-20-2011 10:25 AM
Folks,
I am trying to use MIME to send a mail with an PDF attachment which works fine, but I want to include some text in the body of the mail, which informs the recipient of the attachment. I can't see a way to send an existing text file with the attachment included, I always have to create a new blank file to add the attachment. How can I add some text to the body of the mail? See below some sample code I'm using:
$MIME
new/noedit sys$login:email.txt
add/binary file71.pdf
save
exit
$mail/noself/sub="Test" sys$login:email.txt smtp%"emailname@abc.com"
Thanks,
Rob
Solved! Go to Solution.
- Tags:
- attachments
- mime
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2011 12:11 PM
07-20-2011 12:11 PM
SolutionHi Rob,
You can do it this way.
Create a Text Document SYS_DAT:MIME_with_Body_Text.txt which starts with the body text.
(SYS_DAT is just a directory.)
$ type SYS_DAT:Mime_with_Body_Text.txt
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hello,
In the attachment you find the info.
______________________________________________
Mail from an OpenVMS Company (DO NOT REPLY)
$ I have a PDF document SYS_DAT:PDF-Document.pdf
Create a MIME file with the Text document and add the PDF document.
$ MIME
MIME> OPEN/DRAFT SYS_DAT:MIME_with_Body_Text.TXT
MIME> ADD SYS_DAT:PDF-Document.pdf
MIME> SAVE
MIME> EXIT
$
$ mail/noself/sub="Test" SYS_DAT:MIME_with_Body_Text.txt smtp%"emailname@abc.com"
$
No you should receive a email with body text and an attachment.
Just try it.
/Toine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2011 12:50 PM
07-20-2011 12:50 PM
Re: Using MIME with attachments
Hello Toine,
Excellent! Move to the front of the class, this works perfectly. Thanks very much for your help. Saved me a load of time trying to figure this out.
Thanks,
Rob