Send an E-Mail to the given address.
It is possible to pass the engine some variables to substitute placeholders.
mixed
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])
-
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
Send an E-Mail to the given address
mixed
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])
-
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