Send mail using SMTP protocol
_bufferResponseLines( array $responseLines )
Parses and stores the reponse lines in 'code' => 'message'
format.
$responseLines
_generateSocket( )
Helper method to generate socket
SocketException
_prepareFromAddress( )
Prepares the from
email address.
array
_prepareFromCmd( string $email )
Prepares the MAIL FROM
SMTP command.
$email
string
_prepareMessageHeaders( )
Prepares the message headers.
array
_prepareRcptCmd( string $email )
Prepares the RCPT TO
SMTP command.
$email
string
_prepareRecipientAddresses( )
Prepares the recipient email addresses.
array
_smtpSend( string|null $data , string|boolean $checkCode '250' )
Protected method for sending data to SMTP connection
$data
$checkCode
optional '250' string|null
SocketException
config( array $config null )
Set the configuration
$config
optional null array
AbstractTransport::config()
getLastResponse( )
Returns the response of the last sent SMTP command.
A response consists of one or more lines containing a response code and an optional response message text:
array( array( 'code' => '250', 'message' => 'mail.example.com' ), array( 'code' => '250', 'message' => 'PIPELINING' ), array( 'code' => '250', 'message' => '8BITMIME' ), // etc... )
array
send( CakeEmail $email )
Send mail
CakeEmail
$email
array
SocketException
_headersToString( array $headers , string $eol "\r\n" )
Help to convert headers in string
$headers
$eol
optional "\r\n" string
© 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.
http://api.cakephp.org/2.7/class-SmtpTransport.html