Description
Located in File: /vendors/swiftMailer/classes/Swift/Transport/AbstractSmtpTransport.php
Sends Messages over SMTP.
- author: - Chris Corbyn
- abstract: -
Classes extended from Swift_Transport_AbstractSmtpTransport:
- Swift_Transport_EsmtpTransport
- Sends Messages over SMTP with ESMTP support.
- Swift_Transport_SendmailTransport
- SendmailTransport for sending mail through a sendmail/postfix (etc..) binary.
Method Detail
Summary:
string
executeCommand
(
string $command, [
int[] $codes =
array()], [
string[] &$failures =
null])
Destructor __destruct (line 538)
void __destruct(
)
Destructor.
Info
Method executeCommand (line 281)
string executeCommand(
string
$command, [int[]
$codes = array()], [string[]
&$failures = null])
Overridden in child classes as:
- Swift_Transport_EsmtpTransport::executeCommand()
- Run a command against the buffer, expecting the given response codes.
Run a command against the buffer, expecting the given response codes.
If no response codes are given, the response will not be validated. If codes are given, an exception will be thrown on an invalid response.
Parameters
- string $command:
- int[] $codes:
- string[] &$failures:
Info
Method getBuffer (line 265)
Get the IoBuffer where read/writes are occurring.
Info
Method getLocalDomain (line 78)
string getLocalDomain(
)
Get the name of the domain Swift will identify as.
Info
Method isStarted (line 124)
boolean isStarted(
)
Implementation of:
- Swift_Transport::isStarted()
- Test if this Transport mechanism has started.
Test if an SMTP connection has been established.
Info
Method reset (line 255)
void reset(
)
Reset the current mail transaction.
Info
Method send (line 139)
int send(
Swift_Mime_Message
$message, [string[]
&$failedRecipients = null])
Overridden in child classes as:
- Swift_Transport_SendmailTransport::send()
- Send the given Message.
Implementation of:
- Swift_Transport::send()
- Send the given Message.
Send the given Message.
Recipient/sender data will be retreived from the Message API. The return value is the number of recipients who were accepted for delivery.
Parameters
- Swift_Mime_Message $message:
- string[] &$failedRecipients: to collect failures by-reference
Info
Method setLocalDomain (line 67)
void setLocalDomain(
string
$domain)
Set the name of the local domain which Swift will identify itself as.
This should be a fully-qualified domain name and should be truly the domain you're using. If your server doesn't have a domain name, use the IP in square brackets (i.e. [127.0.0.1]).
Parameters
Info
Method stop (line 206)
void stop(
)
Implementation of:
- Swift_Transport::stop()
- Stop this Transport mechanism.
Stop the SMTP connection.
Info
Method _assertResponseCode (line 392)
void _assertResponseCode(
$response,
$wanted)
Throws an Exception if a response code is incorrect
Parameters
Info
Method _doDataCommand (line 327)
void _doDataCommand(
)
Send the DATA command
Info
Method _getFullResponse (line 415)
void _getFullResponse(
$seq)
Get an entire multi-line response using its sequence number
Parameters
Info
Method _getReversePath (line 350)
Determine the best-use reverse path for this message
Parameters
Info
Method _readGreeting (line 297)
void _readGreeting(
)
Read the opening SMTP greeting
Info
Method _streamMessage (line 333)
Stream the contents of the message over the buffer
Parameters
Info
Method _throwException (line 375)
Throw a TransportException, first sending it to any listeners
Parameters
Info