- Jun
- 570
- 4
I figured out -- and just now noticed that Rex has it in the help --
that HTML-format messages can be sent by including the option
/h"Content-Type: text/html"
I have not been able to figure out how to send multipart messages, i.e.,
messages with both plain-text and HTML versions. By looking at the
source for such messages that I have received, I see more complex header
commands with parts of the message body interspersed, as in the
simplified example at the end of this message (I hope that text does not
mess up the posting).
Does anyone know how to create such a message using the SENDMAIL command?
-- Jay
Content-Type: multipart/alternative;
boundary="----=_Part_8090794_20773066.1256141590831"
X-Antivirus: avast! (VPS 091020-0, 10/20/2009), Inbound message
X-Antivirus-Status: Clean
------=_Part_8090794_20773066.1256141590831
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
PLAIN TEXT VERSION
------=_Part_8090794_20773066.1256141590831
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
HTML VERSION
------=_Part_8090794_20773066.1256141590831--
that HTML-format messages can be sent by including the option
/h"Content-Type: text/html"
I have not been able to figure out how to send multipart messages, i.e.,
messages with both plain-text and HTML versions. By looking at the
source for such messages that I have received, I see more complex header
commands with parts of the message body interspersed, as in the
simplified example at the end of this message (I hope that text does not
mess up the posting).
Does anyone know how to create such a message using the SENDMAIL command?
-- Jay
Content-Type: multipart/alternative;
boundary="----=_Part_8090794_20773066.1256141590831"
X-Antivirus: avast! (VPS 091020-0, 10/20/2009), Inbound message
X-Antivirus-Status: Clean
------=_Part_8090794_20773066.1256141590831
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
PLAIN TEXT VERSION
------=_Part_8090794_20773066.1256141590831
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
HTML VERSION
------=_Part_8090794_20773066.1256141590831--