프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_buffer | Input-Output buffer for sending/receiving SMTP commands and responses | ||
$_domain | The domain name to use in HELO command | ||
$_eventDispatcher | The event dispatching layer | ||
$_sourceIp | Source Ip | ||
$_started | Connection status |
메소드 | 설명 | |
---|---|---|
__construct ( Swift_Transport_IoBuffer $buf, Swift_Events_EventDispatcher $dispatcher ) | Creates a new EsmtpTransport using the given I/O buffer. | |
__destruct ( ) | Destructor. | |
executeCommand ( string $command, int[] $codes = [], string[] &$failures = null ) : string | Run a command against the buffer, expecting the given response codes. | |
getBuffer ( ) : Swift_Transport_IoBuffer | Get the IoBuffer where read/writes are occurring. | |
getLocalDomain ( ) : string | Get the name of the domain Swift will identify as. | |
getSourceIp ( ) : string | Returns the IP used to connect to the destination. | |
isStarted ( ) : boolean | Test if an SMTP connection has been established. | |
registerPlugin ( Swift_Events_EventListener $plugin ) | Register a plugin. | |
reset ( ) | Reset the current mail transaction. | |
send ( Swift_Mime_Message $message, string[] &$failedRecipients = null ) : integer | Send the given Message. | |
setLocalDomain ( string $domain ) : Swift_Transport_AbstractSmtpTransport | Set the name of the local domain which Swift will identify itself as. | |
setSourceIp ( string $source ) | Sets the source IP. | |
start ( ) | Start the SMTP connection. | |
stop ( ) | Stop the SMTP connection. |
메소드 | 설명 | |
---|---|---|
_assertResponseCode ( $response, $wanted ) | Throws an Exception if a response code is incorrect | |
_doDataCommand ( ) | Send the DATA command | |
_doHeloCommand ( ) | Send the HELO welcome | |
_doMailFromCommand ( $address ) | Send the MAIL FROM command | |
_doRcptToCommand ( $address ) | Send the RCPT TO command | |
_getBufferParams ( ) | Return an array of params for the Buffer | |
_getFullResponse ( $seq ) | Get an entire multi-line response using its sequence number | |
_getReversePath ( Swift_Mime_Message $message ) | Determine the best-use reverse path for this message | |
_readGreeting ( ) | Read the opening SMTP greeting | |
_streamMessage ( Swift_Mime_Message $message ) | Stream the contents of the message over the buffer | |
_throwException ( Swift_TransportException $e ) | Throw a TransportException, first sending it to any listeners |
메소드 | 설명 | |
---|---|---|
_doMailTransaction ( $message, $reversePath, array $recipients, array &$failedRecipients ) | Send an email to the given recipients from the given reverse path | |
_isFqdn ( $hostname ) | Determine is the $hostname is a fully-qualified name | |
_lookupHostname ( ) | Try to determine the hostname of the server this is run on | |
_sendBcc ( Swift_Mime_Message $message, $reversePath, array $bcc, array &$failedRecipients ) | Send a message to all Bcc: recipients | |
_sendTo ( Swift_Mime_Message $message, $reversePath, array $to, array &$failedRecipients ) | Send a message to the given To: recipients |
public __construct ( Swift_Transport_IoBuffer $buf, Swift_Events_EventDispatcher $dispatcher ) | ||
$buf | Swift_Transport_IoBuffer | |
$dispatcher | Swift_Events_EventDispatcher |
protected _assertResponseCode ( $response, $wanted ) |
abstract protected _getBufferParams ( ) |
protected _getFullResponse ( $seq ) |
protected _getReversePath ( Swift_Mime_Message $message ) | ||
$message | Swift_Mime_Message |
protected _streamMessage ( Swift_Mime_Message $message ) | ||
$message | Swift_Mime_Message |
protected _throwException ( Swift_TransportException $e ) | ||
$e | Swift_TransportException |
public executeCommand ( string $command, int[] $codes = [], string[] &$failures = null ) : string | ||
$command | string | |
$codes | int[] | |
$failures | string[] | An array of failures by-reference |
리턴 | string |
public getBuffer ( ) : Swift_Transport_IoBuffer | ||
리턴 | Swift_Transport_IoBuffer |
public getLocalDomain ( ) : string | ||
리턴 | string |
public getSourceIp ( ) : string | ||
리턴 | string |
public registerPlugin ( Swift_Events_EventListener $plugin ) | ||
$plugin | Swift_Events_EventListener |
public setLocalDomain ( string $domain ) : Swift_Transport_AbstractSmtpTransport | ||
$domain | string | |
리턴 | Swift_Transport_AbstractSmtpTransport |
protected $_buffer |