helpers/email – Kohana API 2.3 Documentation

system/helpers/email.php

Class: email_Core

class email_Core

Email helper class.


Methods

email_Core :: connect

public static function connect

Creates a SwiftMailer instance.

Parameters:

string config
(NULL) DSN connection string

Return: object Swift object


email_Core :: send

public static function send

Send an email message.

Parameters:

string or array to
recipient email (and name), or an array of To, Cc, Bcc names
string or array from
sender email (and name)
string subject
message subject
string message
message body
boolean html
(FALSE) send email as HTML

Return: integer number of emails sent