| Cts_Email | |
| Author | Jaybill McCarthy |
| License | http://communit.as/docs/license |
| Constructors | |
| Cts_Email | Sets a template path variable (_template_path), and instantiates a logger. |
| sendEmail | Sends an email. |
| sendHtmlEmail | Sends an HTML email. |
function sendEmail( $subject, $to_address, $template, $params = null, $to_name = null, $isHtml = false )
Sends an email.
| subject | The subject line of the email to send. |
| to_address | The recipient email address to send the email to. |
| template | A template file to use for the layout. |
| params (optional) | An array of arbitrary parameters that get rendered as view variables, each of which can be used within the supplied template. |
| to_name (optional) | The name of the recipient. |
| isHtml (optional) | Sets whether the email is plain text (false) or HTML (true). Default is false. |
Returns: void
function sendHtmlEmail( $subject, $to_address, $template, $params = null, $to_name = null )
Sends an HTML email. The same as using sendEmail with the isHtml boolean set to true (in fact, that’s all this does).
| subject | The subject line of the email to send. |
| to_address | The recipient email address to send the email to. |
| template | A template file to use for the layout. params (optional) - to_name (optional) - |
Sets a template path variable (_template_path), and instantiates a logger.
function Cts_Email( $template_path = null, $module = "default" )
Sends an email.
function sendEmail( $subject, $to_address, $template, $params = null, $to_name = null, $isHtml = false )
Sends an HTML email.
function sendHtmlEmail( $subject, $to_address, $template, $params = null, $to_name = null )