Mail
in package
Uses
Content
Send email.
Table of Contents
Properties
Methods
- __construct() : mixed
- send() : mixed
- setSubject() : void
- test() : mixed
- initMailer() : mixed
- send_email() : string|true
- Send email.
- splitAddress() : mixed
Properties
$html
protected
bool
$html
= true
$mime
protected
string
$mime
= "text/plain"
$subject
protected
string
$subject
$template
protected
string
$template
Methods
__construct()
public
__construct([string $template = "" ][, string $subject = "" ]) : mixed
Parameters
- $template : string = ""
- $subject : string = ""
send()
public
send(string $email[, array<string|int, mixed>|null $data = null ]) : mixed
Parameters
- $email : string
- $data : array<string|int, mixed>|null = null
setSubject()
public
setSubject(string $subject) : void
Parameters
- $subject : string
test()
public
test(mixed $host, mixed $port, mixed $scheme, mixed $user, mixed $pass, mixed $from) : mixed
Parameters
- $host : mixed
- $port : mixed
- $scheme : mixed
- $user : mixed
- $pass : mixed
- $from : mixed
initMailer()
private
initMailer([mixed $host = "" ][, mixed $port = "" ][, mixed $scheme = "" ][, mixed $user = "" ][, mixed $pass = "" ]) : mixed
Parameters
- $host : mixed = ""
- $port : mixed = ""
- $scheme : mixed = ""
- $user : mixed = ""
- $pass : mixed = ""
send_email()
Send email.
private
send_email(string $to, string $subject, string $message[, mixed $background = true ]) : string|true
Parameters
- $to : string
- $subject : string
- $message : string
- $background : mixed = true
Return values
string|truesplitAddress()
private
splitAddress(mixed $address) : mixed
Parameters
- $address : mixed