Operating System - OpenVMS
1752534 Members
5237 Online
108788 Solutions
New Discussion юеВ

Re: Sending HTML email from VMS?

 
SOLVED
Go to solution
roose
Regular Advisor

Sending HTML email from VMS?

Hi Folks,

I've been trying to look for a procedure to do this but so far, I have been unlucky. There might be some thread on the ITRC before, but no luck as well using the forum search utility.

What I wanted to do is basically, create an HTML file on our VMS node, then send it through SMTP. Once my email client receives it (Lotus Notes), I want to see the HTML output itself, not an HTML attachment file. Is this possible? I already saw some threads about MIME and SFF and was able to test it but the file is being sent as an attachment, not the mail body itself.

Also, is there a better search tool to use when looking for some information on the ITRC? It seems that the search tool here produces more miss than hits when I try to find some keywords.
5 REPLIES 5
Joseph Huber_1
Honored Contributor

Re: Sending HTML email from VMS?

A little trick doing that was posted to comp.os.vms recently: it works by placing the MIME header in the VMS mail SUBJECT.

The saved command-file can be picked up from
http://wwwvms.mppmu.mpg.de/util_root/com/misc/send_html.com

This trick of course is not guaranted to work with future VMS mail versions.

Certainly You could construct a file for SFF, (using one of the mentioned examples), but instead of building headers for attachments, build a header for HTML in the body:

"Mime-Version: 1.0"
"Content-Type: text/HTML"

followed by the HTML file content.
http://www.mpp.mpg.de/~huber
Robert Gezelter
Honored Contributor

Re: Sending HTML email from VMS?

Roose,

Before the MIME utility existed, and on several other occasions for a variety of reasons, I used C-Kermit (which is available at low cost from the Kermit Project at http://www.columbia.edu/kermit ) to manually do the SMTP protocol exchanges with the local SMTP Server. Using a command file, and a Kermit Script, I was able to totally control the details of the message, and generate whatever message was necessary for the application.

- Bob Gezelter, http://www.rlgsc.com
Joseph Huber_1
Honored Contributor
Solution

Re: Sending HTML email from VMS?


I produced a variant of a command-procedure, now sending a pure MIME header for HTML body, which uses TCPIP send-from-file (SFF) utility, and therefore does not rely on the trick mentioned in my previous reply.

http://wwwvms.mppmu.mpg.de/util_root/com/send_html.com
http://www.mpp.mpg.de/~huber
Robert Atkinson
Respected Contributor

Re: Sending HTML email from VMS?

Roose - our DCL version (attached) of HTML emails with file attachments.

Rob.
roose
Regular Advisor

Re: Sending HTML email from VMS?

Hi Folks,

Thanks for your help! The procedures given by Joseph and Rob provided what I was looking for.

I am now closing this thread. Thanks again to all who replied.