Send mail using mail() function
_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
$to
$subject
$message
$headers
$params
optional null SocketException
send( CakeEmail $email )
Send mail
CakeEmail
$email
SocketException
_headersToString( array $headers , string $eol "\r\n" )
Help to convert headers in string
$headers
$eol
optional "\r\n" config( array $config null )
Set the config
$config
optional null
© 2005–2016 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/2.9/class-MailTransport.html