<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using MIME with attachments in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/using-mime-with-attachments/m-p/4834421#M19754</link>
    <description>&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can do it this way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a Text Document SYS_DAT:MIME_with_Body_Text.txt which starts with the body text.&lt;/P&gt;&lt;P&gt;(SYS_DAT is just a directory.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;$&amp;nbsp;type SYS_DAT:Mime_with_Body_Text.txt&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;Content-Type: text/plain; charset=ISO-8859-1&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;Content-Transfer-Encoding: 7bit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;Content-Disposition: inline&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;Hello,&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;In the attachment you find the info.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;______________________________________________&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;Mail from&amp;nbsp;an OpenVMS Company&amp;nbsp;(DO NOT REPLY)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;$&amp;nbsp;I have a PDF document SYS_DAT:PDF-Document.pdf&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Create a MIME file with the Text document and add the PDF document.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;$ MIME&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;MIME&amp;gt; OPEN/DRAFT&amp;nbsp;SYS_DAT:MIME_with_Body_Text.TXT&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;MIME&amp;gt; ADD SYS_DAT:PDF-Document.pdf﻿&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;MIME&amp;gt; SAVE&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;MIME&amp;gt; EXIT&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;$&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;$ mail/noself/sub="Test" ﻿SYS_DAT:MIME_with_Body_Text.txt smtp%"emailname@abc.com"﻿&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;$&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No you should receive a email with body text and an attachment.&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;Just try it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Toine&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jul 2011 19:11:42 GMT</pubDate>
    <dc:creator>Toine_1</dc:creator>
    <dc:date>2011-07-20T19:11:42Z</dc:date>
    <item>
      <title>Using MIME with attachments</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-mime-with-attachments/m-p/4834303#M19753</link>
      <description>&lt;P&gt;Folks,&lt;/P&gt;&lt;P&gt;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.&amp;nbsp; 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.&amp;nbsp; How can I add some text to the body of the mail?&amp;nbsp; See below some sample code I'm using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$MIME&lt;BR /&gt;&amp;nbsp; new/noedit sys$login:email.txt&lt;BR /&gt;&amp;nbsp; add/binary file71.pdf&lt;BR /&gt;&amp;nbsp; save&lt;BR /&gt;&amp;nbsp; exit&lt;BR /&gt;$mail/noself/sub="Test" ﻿sys$login:email.txt smtp%"emailname@abc.com"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2011 17:25:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-mime-with-attachments/m-p/4834303#M19753</guid>
      <dc:creator>Rob-Cox</dc:creator>
      <dc:date>2011-07-20T17:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using MIME with attachments</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-mime-with-attachments/m-p/4834421#M19754</link>
      <description>&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can do it this way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a Text Document SYS_DAT:MIME_with_Body_Text.txt which starts with the body text.&lt;/P&gt;&lt;P&gt;(SYS_DAT is just a directory.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;$&amp;nbsp;type SYS_DAT:Mime_with_Body_Text.txt&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;Content-Type: text/plain; charset=ISO-8859-1&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;Content-Transfer-Encoding: 7bit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;Content-Disposition: inline&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;Hello,&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;In the attachment you find the info.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;______________________________________________&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;Mail from&amp;nbsp;an OpenVMS Company&amp;nbsp;(DO NOT REPLY)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;$&amp;nbsp;I have a PDF document SYS_DAT:PDF-Document.pdf&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Create a MIME file with the Text document and add the PDF document.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;$ MIME&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;MIME&amp;gt; OPEN/DRAFT&amp;nbsp;SYS_DAT:MIME_with_Body_Text.TXT&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;MIME&amp;gt; ADD SYS_DAT:PDF-Document.pdf﻿&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;MIME&amp;gt; SAVE&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;MIME&amp;gt; EXIT&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;$&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;$ mail/noself/sub="Test" ﻿SYS_DAT:MIME_with_Body_Text.txt smtp%"emailname@abc.com"﻿&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;$&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No you should receive a email with body text and an attachment.&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;Just try it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Toine&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2011 19:11:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-mime-with-attachments/m-p/4834421#M19754</guid>
      <dc:creator>Toine_1</dc:creator>
      <dc:date>2011-07-20T19:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using MIME with attachments</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/using-mime-with-attachments/m-p/4834463#M19755</link>
      <description>&lt;P&gt;Hello Toine,&lt;/P&gt;&lt;P&gt;Excellent!&amp;nbsp; Move to the front of the class, this works perfectly.&amp;nbsp; Thanks very much for your help.&amp;nbsp; Saved me a load of time trying to figure this out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2011 19:50:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/using-mime-with-attachments/m-p/4834463#M19755</guid>
      <dc:creator>Rob-Cox</dc:creator>
      <dc:date>2011-07-20T19:50:55Z</dc:date>
    </item>
  </channel>
</rss>

