KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Sending HTML Mails using 4D Internet commands
PRODUCT: 4D Internet Commands | VERSION: 6.5 | PLATFORM: Mac & Win
Published On: February 23, 2001

When sending e-mails using the 4D Internet Commands Plug-in, you may want to use HTML instead of Text for the contents of the email itself. This can be done by using the following header: "text/html;charset=us-ascii".

To define the header type you need to use the SMTP_AddHeader command in a statement similar to the following:

$err:=SMTP_AddHeader($SMTP_ID;"Content-Type:";"text/html;charset=us-ascii";1)

Be aware, though, that if the email does not include multiple parts and contains only HTML, the actual HTML code will appear in emailers that do not support HTML.