Overview

Namespaces

  • Core
    • Auth
    • Exceptions
    • Helpers
    • Providers
  • Kernel
    • Dispatch
    • Providers
  • None
  • Vendor
    • ExampleVendor

Classes

  • Logger
  • Mailer
  • Mailer_PHP
  • Overview
  • Namespace
  • Class
  • Download

Class Mailer_PHP

Send emails from your own server with the library PHPMailer

Namespace: Kernel\Dispatch
Package: Kernel
Located at app/Kernel/Dispatch/Mailer_PHPMailer.php
Methods summary
public static Kernel\Dispatch\Mailer_PHP
# singleton( )

Returns a Mailer_PHP instance, creating it if it did not exist.

Returns a Mailer_PHP instance, creating it if it did not exist.

Returns

Kernel\Dispatch\Mailer_PHP
public boolean
# sendEmail( mixed $to, string $subject, string $message, mixed $from, mixed $replyTo = array(), array $files = array() )

Sends an email using the PHP function, but first setting the appropriate headers, content-types... and attached files.

Sends an email using the PHP function, but first setting the appropriate headers, content-types... and attached files.

Parameters

$to
Send it to whom? can be a string "john@example.com", an array('john@example.com', 'John Smith') or an array('Addresses' => array(array('john@example.com', 'John Smith'), 'peter@example.com', ....))
$subject
The message subject for the email
$message
The message body
$from
( 'somebody@example.com' ) The email address from the sender or an array('somebody@example.com', 'Foo Bar');
$replyTo
( 'somebody@example.com', 'foo@example.com', ... ) The email address to reply to or an array array(array('somebody@example.com', 'Foo Bar'), array(...));
$files
(default array() ) Array with the filenames of the desired files to attach.

Returns

boolean
TRUE if sending was OK, FALSE otherwise. This does not mean the email will be delivered: it just means there was no error when sending it

Author

Nico Kupfer
Properties summary
public PHPMailer $mail

An instance of PHPMailer

An instance of PHPMailer

#
Ribosome API documentation generated by ApiGen