CF_MAILHTMLBODY
CF_MAILHTMLBODY can be used to specify separate HTML body of the mail message. In case you want to send message using CF_MAIL in both TEXT and HTML formats then TEXT body can be assigned using CF_MAIL tag and HTML body can be assigned using CF_MAILHTMLBODY tag. If this tag CF_MAILHTMLBODY is specified in CF_MAIL then already specified TYPE attribute of CF_MAIL is ignored and CF_MAIL will choose appropriate message type itself.
See also CF_MAIL.
Syntax
<CF_MAIL
TO="recipient"
SUBJECT="msg_subject"
FROM="sender"
...more attibutes...
>
<CF_MAILHTMLBODY>
This is HTML body of the message sent by CF_MAIL (AdvSMTP).
</CF_MAILHTMLBODY>
...
</CF_MAIL>
Example
<!--- This view-only example shows the use of CF_MAILHTMLBODY --->
<HTML>
<HEAD>
<TITLE>CF_MAILHTMLBODY Example</TITLE>
</HEAD>
<BODY>
<H3>CF_MAILHTMLBODY Example</H3>
<P>This view-only example shows the use of CF_MAILHTMLBODY.
If your ASPFusion SMTP mail settings are configured successfully,
you will be able to use this code to send simple email.</P>
<CF_MAIL TO="to@aspfusion.net"
FROM="from@aspfusion.net"
SUBJECT="this is testing mail message">
<CF_MAILHTMLBODY>
This is HTML body of the message sent by CF_MAIL (AdvSMTP).
</CF_MAILHTMLBODY>
This is testing message sent by CF_MAIL (AdvSMTP).
</CF_MAIL>
</BODY>
</HTML>