Chapter 79. sendmail
Table of Contents
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
,
string sFrom
,
string sEmailaddr
,
string sSubject
,
string sMessage
,
string sMailhost
,
string sHostname
,
string sTimezone
,
string sReplyto
,
string authtype
,
string username
,
boolean password
,
array usehtml
,
boolean attachments
)
debug
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
sFrom | None | string | |
sEmailaddr | None | string | |
sSubject | None | string | |
sMessage | None | string | |
sMailhost | None | string | |
sHostname | None | string | |
sTimezone | None | string | |
sReplyto | None | string | |
authtype | None | string | |
username | None | string | |
password | None | string | |
usehtml | .false | boolean | |
attachments | None | array | |
debug | .false | boolean |