$send8bit
$send8bit :
LMTP implementation using the Horde_Smtp package.
None found |
$eai : boolean
Does the transport driver support EAI (RFC 6532) headers? (@since 2.5.0)
None found |
None found |
None found |
__construct(array $params = array())
Constructor.
array | $params | Additional parameters:
|
None found |
None found |
send(mixed $recipients, array $headers, mixed $body)
Send a message.
mixed | $recipients | Either a comma-seperated list of recipients (RFC822 compliant), or an array of recipients, each RFC822 valid. This may contain recipients not specified in the headers, for Bcc:, resending messages, etc. |
array | $headers | The headers to send with the mail, in an associative array, where the array key is the header name (ie, 'Subject'), and the array value is the header value (ie, 'test'). The header produced from those values would be 'Subject: test'. If the '_raw' key exists, the value of this key will be used as the exact text for sending the message. |
mixed | $body | The full text of the message body, including any Mime parts, etc. Either a string or a stream resource. |
None found |
getSMTPObject() : \Horde_Smtp
Connect to the SMTP server by instantiating a Horde_Smtp object.
The SMTP object.
None found |
prepareHeaders(array $headers) : mixed
Take an array of mail headers and return a string containing text usable in sending a message.
array | $headers | The array of headers to prepare, in an associative array, where the array key is the header name (ie, 'Subject'), and the array value is the header value (ie, 'test'). The header produced from those values would be 'Subject: test'. If the '_raw' key exists, the value of this key will be used as the exact text for sending the message. |
Returns false if it encounters a bad address; otherwise returns an array containing two elements: Any From: address found in the headers, and the plain text version of the headers.
None found |
parseRecipients(mixed $recipients) : array
Take a set of recipients and parse them, returning an array of bare addresses (forward paths) that can be passed to sendmail or an SMTP server with the 'RCPT TO:' command.
mixed | $recipients | Either a comma-separated list of recipients (RFC822 compliant), or an array of recipients, each RFC822 valid. |
Forward paths (bare addresses, IDN encoded).
None found |
_sanitizeHeaders(array $headers) : array
Sanitize an array of mail headers by removing any additional header strings present in a legitimate header's value. The goal of this filter is to prevent mail injection attacks.
Raw headers are sent as-is.
array | $headers | The associative array of headers to sanitize. |
The sanitized headers.
None found |
_normalizeEOL(string $data) : string
Normalizes EOLs in string data.
string | $data | Data. |
Normalized data.
None found |
_getFrom(string $from, array $headers) : string
Get the from address.
string | $from | From address. |
array | $headers | Headers array. |
Address object.
None found |