[Info-vax] SFF and MIME
Rich Jordan
jordan at ccs4vms.com
Thu Dec 10 13:12:57 EST 2009
On Dec 10, 9:49 am, Tom <mcwilli... at aforbes.co.za> wrote:
> Greetings everyone,
> I am wanting to send SMTP mail from OpenVMS V7.3-2 using
> TCP/IP Services V5.4. Up front I must say that I want to be able to
> send a Subject line, a text Message Body AS WELL AS an HTML file
> attachment.
> I have followed the relevant thread on HP OpenVMS Ask the
> Wizard where the use of MIME and SFF is recommended and I have managed
> to achieve the two requirements, but not simultaneously.
> 1. If I use MAIL to send the MIME created file it sends through the
> attachment correctly.
> $ MAIL /SUBJECT="Test email"/PERSONAL_NAME="System_Messaging"
> CPSPDR:TOM.MIME @esrc:tom.recip
> 2. If I use SFF to send an RFC 822 compliant file, it formats the mail
> exactly as I expect it to.
>
> $ sff cpspdr:TEST_SMTP_SFF.TXT
>
> MAIL FROM:<mcwilli... at aforbes.co.za>
> RCPT TO:<mcwilli... at aforbes.co.za>
> DATA
> Date: Sun, 4 Aug 1996 14:48:14 -0400
> Message-Id: <96080414481500 at compaq.com>
> From: mcwilli... at aforbes.co.za (Alexander Forbes)
> To: mcwilli... at aforbes.co.za
> Subject: Test of SFF
> mechanism
>
> Dearly beloved we are gathered here today....
> Blah, Blah, fish paste, stick and throttle....
> 3. However, when I build the RFC 822 compliance around the MIME file
> (by inserting the contents of the MIME file after the DATA command), I
> receive the mail with the HTML file attached but everything from Date:
> Sun, 4 Aug 1996 14:48:14 -0400 onwards is ignored!
>
> Can anyone perhaps point me in the right direction? Any suggestions
> would be greatly appreciated.
Jerry Alan Braga wrote a wonderful little command procedure that sends
mail with an attachment (any type we've tried so far). Works great
for our purposes. You can see it at dcl.openvms.org (search for
'sendmail'):
http://dcl.openvms.org/stories.php?story=04/09/22/8507303
If the procedure doesn't serve your needs, its probably still a useful
example.
Make sure you have entries for any file 'type' you intend to send as
an attachment in your SYS$LOGIN:MIME$FILETYPES.DAT file.
More information about the Info-vax
mailing list