Class MailTransport
Send mail using mail() function
- AbstractTransport
- MailTransport
Package: Cake\Network\Email
Copyright: Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Location: Cake/Network/Email/MailTransport.php
Copyright: Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Location: Cake/Network/Email/MailTransport.php
Inherited Properties
Method Summary
Method Detail
_mail() protected ¶
_mail( string $to , string $subject , string $message , string $headers , string $params = null )
Wraps internal function mail() and throws exception instead of errors if anything goes wrong
Parameters
- string $to
- email's recipient
- string $subject
- email's subject
- string $message
- email's body
- string $headers
- email's custom headers
- string $params optional null
- additional params for sending email, will be ignored when in safe_mode
Throws
Methods inherited from AbstractTransport
_headersToString() protected ¶
_headersToString( array $headers , string $eol = "\r\n" )
Help to convert headers in string
Parameters
- array $headers
- Headers in format key => value
- string $eol optional "\r\n"
Returns
string