Class myMVC_MessageManager

Description

Message management.

With this class it is possible to send E-Mails

Located in /myMVC/MessageManager.php (line 29)


	
			
Method Summary
 static 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])
 static 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])
Methods
static sendEMail (line 49)

Send an E-Mail to the given address.

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

  • return: true if E-Mail sent, PEAR_Error on problem
  • access: public
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
static sendPlainEMail (line 82)

Send an E-Mail to the given address

  • return: true if E-Mail sent, PEAR_Error on problem
  • access: public
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

Documentation generated on Sat, 20 Oct 2012 08:28:30 +0200 by phpDocumentor 1.4.4