SIMPOL Documentation

Chapter 79. sendmail

The sendmail library has one function, the sendmail() function. It provides an easy interface to the sending of SMTP emails. If all that is required is a text email, then this is the easiest way to do it.

sendmail()

Description

Prototype

sendmail ( string sFrom, string sEmailaddr, string sSubject, string sMessage, string sMailhost, string sHostname, string sTimezone, string sReplyto, string authtype, string username, string password, boolean usehtml, array attachments, boolean debug )

Parameters

ParameterDefault valueType nameDescription
sFromNonestring
sEmailaddrNonestring
sSubjectNonestring
sMessageNonestring
sMailhostNonestring
sHostnameNonestring
sTimezoneNonestring
sReplytoNonestring
authtypeNonestring
usernameNonestring
passwordNonestring
usehtml.falseboolean
attachmentsNonearray
debug.falseboolean