WIKINDX API trunk

MAIL
in package

MAIL

Common email functions. Updated 2016 to use PhpMailer classes

Table of Contents

Properties

$TransactionLog  : string
string

Methods

__construct()  : mixed
MAIL
__destruct()  : null
Destructor
sendEmail()  : bool
Send an email

Properties

$TransactionLog

string

public string $TransactionLog = ''

Methods

__construct()

MAIL

public __construct() : mixed

__destruct()

Destructor

public __destruct() : null
Return values
null

sendEmail()

Send an email

public sendEmail(string|array<string|int, string> $addresses, string $subject, string $messageHTML[, string $messageText = "" ]) : bool

NB: $messageHTML can also be plain text if $messageText is empty

Parameters
$addresses : string|array<string|int, string>

Either array of addresses or a single address (which might be ,|; delimited string of addresses)

$subject : string

The email subject

$messageHTML : string

The email message as HTML

$messageText : string = ""

The email message as Plain text (Default is an empty text)

Return values
bool

(TRUE on success, FALSE on failure)


        
On this page

Search results