Neuron-PHP

Email
in package

Email utility class for sending HTML and text emails with attachments.

Provides a simple interface for composing and sending emails using PHP's mail() function. Supports multiple recipients (To, CC, BCC), file attachments, and both HTML and plain text content.

Table of Contents

Constants

EMAIL_HTML  = 1
EMAIL_TEXT  = 0

Properties

$_attachList  : mixed
$_bccList  : mixed
$_body  : mixed
$_ccList  : mixed
$_from  : mixed
$_headers  : mixed
$_mimeBoundry  : mixed
$_subject  : mixed
$_toList  : mixed
$_type  : mixed

Methods

addBCC()  : mixed
addCC()  : mixed
addTo()  : mixed
attachFile()  : mixed
getAttachList()  : array<string|int, mixed>
getBCCList()  : array<string|int, mixed>
getBody()  : mixed
getCCList()  : array<string|int, mixed>
getFrom()  : mixed
getSubject()  : mixed
getToList()  : array<string|int, mixed>
getType()  : int
send()  : bool
setBody()  : mixed
setFrom()  : mixed
setSubject()  : mixed
setType()  : mixed
getArrayList()  : string
getAttachmentCode()  : string

Constants

EMAIL_HTML

public mixed EMAIL_HTML = 1

EMAIL_TEXT

public mixed EMAIL_TEXT = 0

Properties

$_attachList

private mixed $_attachList = array()

$_bccList

private mixed $_bccList = array()

$_ccList

private mixed $_ccList = array()

$_headers

private mixed $_headers

$_mimeBoundry

private mixed $_mimeBoundry

$_subject

private mixed $_subject

$_toList

private mixed $_toList = array()

$_type

private mixed $_type = \Neuron\Util\Email::EMAIL_HTML

Methods

addBCC()

public addBCC(mixed $addr) : mixed
Parameters
$addr : mixed

addCC()

public addCC(mixed $addr) : mixed
Parameters
$addr : mixed

addTo()

public addTo(mixed $addr) : mixed
Parameters
$addr : mixed

attachFile()

public attachFile(mixed $file) : mixed
Parameters
$file : mixed

getAttachList()

public getAttachList() : array<string|int, mixed>
Return values
array<string|int, mixed>

getBCCList()

public getBCCList() : array<string|int, mixed>
Return values
array<string|int, mixed>

getBody()

public getBody() : mixed

getCCList()

public getCCList() : array<string|int, mixed>
Return values
array<string|int, mixed>

getFrom()

public getFrom() : mixed

getSubject()

public getSubject() : mixed

getToList()

public getToList() : array<string|int, mixed>
Return values
array<string|int, mixed>

getType()

public getType() : int
Return values
int

send()

public send() : bool
Return values
bool

setBody()

public setBody(mixed $body) : mixed
Parameters
$body : mixed

setFrom()

public setFrom(mixed $from) : mixed
Parameters
$from : mixed

setSubject()

public setSubject(mixed $subject) : mixed
Parameters
$subject : mixed

setType()

public setType(mixed $type) : mixed
Parameters
$type : mixed

getArrayList()

protected getArrayList(mixed $arr) : string
Parameters
$arr : mixed
Return values
string

getAttachmentCode()

protected getAttachmentCode(mixed $name) : string
Parameters
$name : mixed
Return values
string

        
On this page

Search results