\myMVC_MessageManager

Message management.

With this class it is possible to send E-Mails

Summary

Methods
Properties
Constants
sendEMail()
sendPlainEMail()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

sendEMail()

sendEMail(\Class  $mailTemplate, boolean  $isHTML, array  $variables, string  $from, string  $to, string  $subject, array  $recipients, array  $extraHeaders = array(), string  $smtpServer = NULL, string  $smtpAuth = NULL, string  $smtpUser = NULL, string  $smtpPass = NULL,   $attachment = array()) : mixed

Send an E-Mail to the given address.

It is possible to pass the engine some variables to substitute placeholders.

Parameters

\Class $mailTemplate

Template of the E-Mail. It MUST derive myMVC_BaseView

boolean $isHTML

if true, the E-Mail will send the template as HTML, too. Otherwise is the E-Mail plain-text

array $variables

Optional template variables as associative array (name => value)

string $from

Sender's address

string $to

Recipient's address (for the E-Mail-headers)

string $subject

Subject of the E-Mail

array $recipients

Recipients' list. Hier you can give more addresses as in $to

array $extraHeaders

Optionally extra headers as associative array header => value

string $smtpServer

If given, myMVC uses this server to send the E-Mail. Otherwise it uses the server defined in $config

string $smtpAuth

If given, myMVC uses this authentification method to send the E-Mail. Otherwise it uses the server defined in $config

string $smtpUser

If given, myMVC uses this login to send the E-Mail. Otherwise it uses the server defined in $config

string $smtpPass

If given, myMVC uses this password to send the E-Mail. Otherwise it uses the server defined in $config

$attachment

Returns

mixed —

true if E-Mail sent, PEAR_Error on problem

sendPlainEMail()

sendPlainEMail(string  $mailTemplate, boolean  $isHTML, string  $from, string  $to, string  $subject, array  $recipients, array  $extraHeaders = array(), string  $smtpServer = NULL, string  $smtpAuth = NULL, string  $smtpUser = NULL, string  $smtpPass = NULL,   $attachment = array()) : mixed

Send an E-Mail to the given address

Parameters

string $mailTemplate

Template of the E-Mail as string

boolean $isHTML

if true, the E-Mail will send the template as HTML, too. Otherwise is the E-Mail plain-text

string $from

Sender's address

string $to

Recipient's address (for the E-Mail-headers)

string $subject

Subject of the E-Mail

array $recipients

Recipients' list. Hier you can give more addresses as in $to

array $extraHeaders

Optionally extra headers as associative array header => value

string $smtpServer

If given, myMVC uses this server to send the E-Mail. Otherwise it uses the server defined in $config

string $smtpAuth

If given, myMVC uses this authentification method to send the E-Mail. Otherwise it uses the server defined in $config

string $smtpUser

If given, myMVC uses this login to send the E-Mail. Otherwise it uses the server defined in $config

string $smtpPass

If given, myMVC uses this password to send the E-Mail. Otherwise it uses the server defined in $config

$attachment

Returns

mixed —

true if E-Mail sent, PEAR_Error on problem