EM_SEND_EMAIL Function

Purpose

Sends the email that has been constructed using the defined connection information.

Returns TRUE or FALSE.

Syntax

EM_SEND_EMAIL()

Returns

EM_SEND_EMAIL returns TRUE if successful or FALSE if unsuccessful. If FALSE, the details of the failure can be found by inspecting the error number held in the common variable EM_ERROR_DETAILS.

Comments

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.