EM_ADD_PLAIN_TEXT Function

Purpose

Adds a plain text version of the email to the body of the email. This is displayed if the client receiving the email cannot display HTML or if an HTML version is not supplied by EM_ADD_HTML_TEXT.

Any attribute marks in the text are replaced with a carriage return/linefeed sequence.

Syntax

EM_ADD_PLAIN_TEXT(body-text)

Syntax elements

body-text The plain text to add to the body of the email.

Returns

None

Comments

The EM_ADD_PLAIN_TEXT function is intended to be used only once per email.

You must include the item #EM_INCLUDES in all programs that use the Email API functions; for example, you could add the line

INCLUDE #EM_INCLUDES FROM /SYSFILES/SYS.BASLIB

at the start of the program, or create an item to be automatically included that contains this line.