Class: I2CE Mailer (Development)
From IHRIS Wiki
For other versions, see Class: I2CE_Mailer (versions) .
This article describes the class I2CE_Mailer .
- Location: Part of the module Mailer in the package I2CE 4.1-dev
- Source: Defined in the file modules/Mail/lib/I2CE_Mailer.php on line 35
Variables
$method
- Defined in i2ce/modules/Mail/lib/I2CE_Mailer.php on line 37
- Type: static protected $method
$headers
- Defined in i2ce/modules/Mail/lib/I2CE_Mailer.php on line 38
- Type: static protected $headers
$params
- Defined in i2ce/modules/Mail/lib/I2CE_Mailer.php on line 39
- Type: static protected $params
$pear_mailer
- Defined in i2ce/modules/Mail/lib/I2CE_Mailer.php on line 40
- Type: static protected $pear_mailer
Methods
initMailer()
- Defined in i2ce/modules/Mail/lib/I2CE_Mailer.php on line 70
- Signature: static protected function initMailer()
mail()
Mail a message
- Defined in i2ce/modules/Mail/lib/I2CE_Mailer.php on line 50
- Signature: static public function mail($recipients,$headers,$body,$html,$attachments)
- Parameters:
- mixed $recipients
an array or a string with comma separated recipients. - array $headers
an associative array of headers. The header name is used as key and the header value as value. If you want to override the envelope sender of the email, set the Return-Path header and that value will be used instead of the value of the From: header. Will merge with anyting under /modules/Mailer/mail_message_headers - string $body
- mixed $html
Defaults to false. It set, it will include it as an html attachment- Default Value: false
- array $attachments
List of attachments to include if using the pear mailer.- Default Value: array()
- mixed $recipients
mail_localhost()
- Defined in i2ce/modules/Mail/lib/I2CE_Mailer.php on line 102
- Signature: static protected function mail_localhost($recipients,$headers,$body,$html)
- Parameters:
- $recipients
- $headers
- $body
- $html
- Default Value: false
mail_pear()
- Defined in i2ce/modules/Mail/lib/I2CE_Mailer.php on line 123
- Signature: static protected function mail_pear($recipients,$headers,$body,$html,$attachments)
- Parameters:
- $recipients
- $headers
- $body
- $html
- Default Value: false
- $attachments
- Default Value: array()