Class to provide SMTP functionality using PEAR Net_SMTP
package |
Framework |
---|---|
subpackage |
|
author |
Thomas Bruederli |
author |
Aleksander Machniak |
connect($host = null, $port = null, $user = null, $pass = null) : bool
bool
Returns true on success, or false on error
send_mail($from, $recipients, &$headers, &$body, $opts = null) : bool
bool
Returns true on success, or false on error
reset()
disconnect()
debug_handler(&$smtp, $message)
get_error()
get_response()
_prepare_headers(array $headers) : mixed
array
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'.
mixed
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.
_parse_rfc822($recipients) : array
array
An array of forward paths (bare addresses).
SMTP_MIME_CRLF
DEBUG_LINE_LENGTH
conn :
response :
error :