CHUNK_DEFAULT
CHUNK_DEFAULT
An interface to an SMTP server (RFC 5321).
Implements the following SMTP-related RFCs:
- RFC 1870/STD 10: Message Size Declaration
- RFC 1985: SMTP Service Extension for Remote Message Queue Starting
- RFC 2034: Enhanced-Status-Codes
- RFC 2195: CRAM-MD5 (SASL Authentication)
- RFC 2595/4616: TLS & PLAIN (SASL Authentication)
- RFC 2831: DIGEST-MD5 authentication mechanism (obsoleted by RFC 6331)
- RFC 2920/STD 60: Pipelining
- RFC 3030: SMTP Service Extensions for Transmission of Large and Binary
MIME Messages
- RFC 3207: Secure SMTP over TLS
- RFC 3463: Enhanced Mail System Status Codes
- RFC 4422: SASL Authentication (for DIGEST-MD5)
- RFC 4954: Authentication
- RFC 5321: Simple Mail Transfer Protocol
- RFC 6152/STD 71: 8bit-MIMEtransport
- RFC 6409/STD 72: Message Submission for Mail
- RFC 6531: Internationalized Email
- XOAUTH2: https://developers.google.com/gmail/xoauth2_protocol
TODO:
- RFC 1845: CHECKPOINT - RFC 2852: DELIVERYBY - RFC 3461: DSN - RFC 3865: NO-SOLICITING - RFC 3885: MTRK - RFC 4141: CONPERM/CONNEG - RFC 4405: SUBMITTER - RFC 4468: BURL - RFC 4865: FUTURERELEASE - RFC 6710: MT-PRIORITY - RFC 7293: RRVS
$_connection : \Horde_Smtp_Connection
Connection to the SMTP server.
$_debug : \Horde_Smtp_Debug
The debug object.
__construct(array $params = array())
Constructor.
| array | $params | Configuration parameters:
|
queryExtension(string $ext) : mixed
Returns whether the SMTP server supports the given extension.
| string | $ext | The extension to query. |
False if the server doesn't support the extension; otherwise, the extension value (returns true if the extension only supports existence).
send(mixed $from, mixed $to, mixed $data, array $opts = array()) : array
Send a message.
| mixed | $from | The from address. Either a Horde_Mail_Rfc822_Address object or a string. |
| mixed | $to | The to (recipient) addresses. Either a Horde_Mail_Rfc822_List object, a string, or an array of addresses. |
| mixed | $data | The data to send. Either a stream or a string. |
| array | $opts |
If no receipients were successful, a Horde_Smtp_Exception will be thrown. If at least one recipient was successful, an array with the following format is returned: (@since 1.5.0)
_startTls() : boolean
Starts the TLS connection to the server, if necessary. See RFC 3207.
True if TLS was started.
| None found |
_auth(string $method)
Authenticate user to server for a given method.
| string | $method | Authentication method. |
| None found |
_getResponse(mixed $code, array $opts = array()) : array
Gets a line from the incoming stream and parses it.
| mixed | $code | Expected reply code(s) (integer or array). |
| array | $opts | Additional options: - error: (string) On error, 'logout' or 'reset'? - exception: (string) Throw an exception of this class on error. |
An array with the response text.
| None found |
_processData(array $recipients) : array
Process the return from the DATA command.
| array | $recipients | The list of message recipients. |
See _send().
| None found |