Mailer
class Mailer extends AbstractSingleton implements OptionableInterface
Constants
MM_CLASSNAME |
|
MM_CLASSVERSION |
|
BOUNDARY_OPENER |
|
BOUNDARY_CLOSER |
|
BOUNDARY_PREFIX |
|
Properties
static | $LINE_ENDING | ||
static | $ADDERSSES_SEPARATOR | ||
static | $HEADERS_SEPARATOR |
Methods
Set an array of options
Get the array of options
Get the value of a specific option
Get the value of a specific option
Get the errors
Get the informations
Set a registry entry
Get a registry entry
Get a message by id or current message
Get the transporter
Get the spooler
Get the dry run value
Is it dry run?
Get the spool value
Is it spooling?
Set the spooled mails directory
Get the spooled mails directory
Messages sender
Messages spooler : prepare the whole content and write it in a file
Details
at line 163
Mailer
setOptions(array $options)
Set an array of options
at line 176
Mailer
setOption(string $name, mixed $value)
Set the value of a specific option
at line 187
array
getOptions()
Get the array of options
at line 199
mixed
getOption(string $name, mixed $default = null)
Get the value of a specific option
at line 210
mixed
getDefault(string $name)
Get the value of a specific option
at line 264
Mailer
addError(string $message)
Add error
at line 277
mixed
getErrors(bool $echoable = false)
Get the errors
at line 292
Mailer
addInfo(string $message)
Add info
at line 305
mixed
getInfos(bool $echoable = false)
Get the informations
at line 326
void
setRegistry(string $var = null, mixed $val = null, string $section = false)
Set a registry entry
at line 347
mixed
getRegistry(string $var = null, string $section = false, mixed $default = false)
Get a registry entry
at line 369
Mailer
addMessage(MessageInterface $message)
Build a new message
at line 384
string
getMessage(int $id = null)
Get a message by id or current message
If no message exists for now, it will be created using the default messager
class.
at line 410
Mailer
setTransporter(TransportInterface $transporter)
Set a transporter
at line 430
string
getTransporter()
Get the transporter
If no message exists for now, it will be created using the default transporter
class.
at line 451
Mailer
setSpooler(SpoolInterface $spooler)
Set a spooler manager
at line 465
string
getSpooler()
Get the spooler
If no message exists for now, it will be created using the default spooler
class.
at line 486
Mailer
setDryRun(bool $dry = true)
Make a dry run of the class : no mail will be sent
at line 497
bool
getDryRun()
Get the dry run value
at line 507
bool
isDryRun()
Is it dry run?
at line 518
Mailer
setSpool(bool $spool = true)
Activate emails spooling
at line 529
bool
getSpool()
Get the spool value
at line 539
bool
isSpool()
Is it spooling?
at line 550
Mailer
setSpoolDirectory(string $dir)
Set the spooled mails directory
at line 561
string
getSpoolDirectory()
Get the spooled mails directory
at line 576
bool|mixed
send(bool $return_info = false)
Messages sender
at line 643
mixed
spool(bool $return_info = false)
Messages spooler : prepare the whole content and write it in a file