Class SmtpTransport
Send mail using SMTP protocol
- AbstractTransport
- SmtpTransport
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/SmtpTransport.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/SmtpTransport.php
Properties summary
-
$_cakeEmail
protectedCakeEmail -
$_content
protectedstring
Content of email to return -
$_socket
protectedSocket to SMTP server
Inherited Properties
Method Summary
-
_auth() protected
Send authentication -
_connect() protected
Connect to SMTP Server -
_disconnect() protected
Disconnect -
_generateSocket() protected
Helper method to generate socket -
_sendData() protected
Send Data -
_sendRcpt() protected
Send emails -
_smtpSend() protected
Protected method for sending data to SMTP connection -
config() public
Set the configuration -
send() public
Send mail
Method Detail
_smtpSend() protected ¶
_smtpSend( string $data , mixed $checkCode = '250' )
Protected method for sending data to SMTP connection
Parameters
- string $data
- data to be sent to SMTP server
- mixed $checkCode optional '250'
- code to check for in server response, false to skip
Throws
config() public ¶
config( array $config = array() )
Set the configuration
Parameters
- array $config optional array()
Overrides
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