LSTOWN-L Archives

LISTSERV List Owners' Forum

LSTOWN-L

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Francoise Becker <[log in to unmask]>
Wed, 23 Aug 2000 10:20:03 -0400
text/plain (70 lines)
On 22 Aug 00, at 17:28, Grégory Juster <[log in to unmask]> wrote:

> How do I set up the content-type in a mail merge to send HTML mail?

For just HTML, you would do something like (examples using list-
based mail merge):

------------------------------------------------------------------
//XXXX JOB ACK=MAIL
DISTRIBUTE MAIL-MERGE DBMS=LIST(XXXX,MAIL,DIGEST,INDEX,NOMAIL)
[log in to unmask] PW=xxxx
//TO DD "1"
//DATA DD *,EOF
Date: Monday, 17 July 2000, 10:43:05
From: [log in to unmask]
To: &*to;
Subject: xxx
Mime-Version: 1.0
Content-Type: text/html

<title>Test Message</title>

<h3>A test message from Fran&ccedil;oise</h3>

<hr>
---------------------------------------------------------


For a multi-part alternative message with text and html alternatives,
you would use something like this:

----------------------------------------------------------
//XXXX JOB ACK=MAIL
DISTRIBUTE MAIL-MERGE DBMS=LIST(XXXX,MAIL,DIGEST,INDEX,NOMAIL) [log in to unmask] PW=xxxx
//TO DD "1"
//DATA DD *,EOF
Date: Monday, 17 July 2000, 10:43:05
From: [log in to unmask]
To: &*to;
Subject: xxx
Mime-Version: 1.0
Content-Type: multipart/alternative;boundary="RdF0ze7As3EM9ERbnNwGCU6sFx5S1dICKVDxpLpU"

This is a multi-part message in MIME format.
If you are reading this text, you may want to consider changing to a mail reader
or gateway that understands how to properly handle MIME multipart messages.

--RdF0ze7As3EM9ERbnNwGCU6sFx5S1dICKVDxpLpU
Content-Type: text/plain

Hello,

This is a test message.

Francoise

--RdF0ze7As3EM9ERbnNwGCU6sFx5S1dICKVDxpLpU
Content-Type: text/html

<title>Test Message</title>

<h3>A test message from Fran&ccedil;oise</h3>

<hr>

--RdF0ze7As3EM9ERbnNwGCU6sFx5S1dICKVDxpLpU--
----------------------------------------------------------------

Francoise

ATOM RSS1 RSS2