Class: I2CE Mailer (Development)

From IHRIS Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


This article describes the class I2CE_Mailer .

Variables

$method

$headers

$params

$pear_mailer

Methods

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()

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()