ILIAS
Release_4_1_x_branch Revision 61804
|
Public Member Functions | |
__construct ($params) | |
Constructor. | |
Mail_smtpmx ($params) | |
Constructor wrapper for PHP4. | |
__destruct () | |
Destructor implementation to ensure that we disconnect from any potentially-alive persistent SMTP connections. | |
send ($recipients, $headers, $body) | |
Implements Mail::send() function using SMTP direct delivery. | |
_getMx ($host) | |
Recieve mx rexords for a spciefied host. | |
_loadNetDns () | |
initialize PEAR:Net_DNS_Resolver | |
_raiseError ($id, $info=array()) | |
raise standardized error | |
Public Member Functions inherited from Mail | |
& | factory ($driver, $params=array()) |
Provides an interface for generating Mail:: objects of various types. | |
_sanitizeHeaders (&$headers) | |
Sanitize an array of mail headers by removing any additional header strings present in a legitimate header's value. | |
prepareHeaders ($headers) | |
Take an array of mail headers and return a string containing text usable in sending a message. | |
parseRecipients ($recipients) | |
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. |
Data Fields | |
$_smtp = null | |
$port = 25 | |
$mailname = 'localhost' | |
$timeout = 10 | |
$withNetDns = true | |
$resolver | |
$verp = false | |
$vrfy = false | |
Whether to use VRFY or not. | |
$test = false | |
$debug = false | |
Switch to test mode - don't send emails for real. | |
$errorCode | |
Data Fields inherited from Mail | |
$sep = "\r\n" |
Definition at line 61 of file smtpmx.php.
Mail_smtpmx::__construct | ( | $params | ) |
Constructor.
Instantiates a new Mail_smtp:: object based on the parameters passed in. It looks for the following parameters: mailname The name of the local mail system (a valid hostname which matches the reverse lookup) port smtp-port - the default comes from getservicebyname() and should work fine timeout The SMTP connection timeout. Defaults to 30 seconds. vrfy Whether to use VRFY or not. Defaults to false. verp Whether to use VERP or not. Defaults to false. test Activate test mode? Defaults to false. debug Activate SMTP and Net_DNS debug mode? Defaults to false. netdns whether to use PEAR:Net_DNS or the PHP build in function getmxrr, default is true
If a parameter is present in the $params array, it replaces the default.
public
array | Hash containing any parameters different from the defaults. |
Definition at line 214 of file smtpmx.php.
Referenced by Mail_smtpmx().
Mail_smtpmx::__destruct | ( | ) |
Destructor implementation to ensure that we disconnect from any potentially-alive persistent SMTP connections.
Definition at line 257 of file smtpmx.php.
Mail_smtpmx::_getMx | ( | $host | ) |
Recieve mx rexords for a spciefied host.
The MX records
private
string | $host | mail host |
Definition at line 411 of file smtpmx.php.
References $res, and _loadNetDns().
Referenced by send().
Mail_smtpmx::_loadNetDns | ( | ) |
initialize PEAR:Net_DNS_Resolver
private
Definition at line 453 of file smtpmx.php.
References _raiseError().
Referenced by _getMx().
Mail_smtpmx::_raiseError | ( | $id, | |
$info = array() |
|||
) |
raise standardized error
include additional information in error message
private
string | $id | maps error ids to codes and message |
array | $info | optional information in associative array |
Definition at line 481 of file smtpmx.php.
References PEAR\raiseError().
Referenced by _loadNetDns(), and send().
Mail_smtpmx::Mail_smtpmx | ( | $params | ) |
Constructor wrapper for PHP4.
public
array | Hash containing any parameters different from the defaults |
Definition at line 247 of file smtpmx.php.
References __construct().
Mail_smtpmx::send | ( | $recipients, | |
$headers, | |||
$body | |||
) |
Implements Mail::send() function using SMTP direct delivery.
public
mixed | $recipients | in RFC822 style or array |
array | $headers | The array of headers to send with the mail. |
string | $body | The full text of the message body, |
Reimplemented from Mail.
Definition at line 274 of file smtpmx.php.
References $res, $result, $user, $verp, _getMx(), _raiseError(), Mail\_sanitizeHeaders(), Mail\parseRecipients(), Mail\prepareHeaders(), and PEAR\raiseError().
Mail_smtpmx::$_smtp = null |
Definition at line 69 of file smtpmx.php.
boolean Mail_smtpmx::$debug = false |
Switch to test mode - don't send emails for real.
internal error codes
translate internal error identifier to PEAR-Error codes and human readable messages.
Definition at line 135 of file smtpmx.php.
Mail_smtpmx::$errorCode |
Definition at line 149 of file smtpmx.php.
Mail_smtpmx::$mailname = 'localhost' |
Definition at line 85 of file smtpmx.php.
Mail_smtpmx::$port = 25 |
Definition at line 76 of file smtpmx.php.
Mail_smtpmx::$resolver |
Definition at line 106 of file smtpmx.php.
Mail_smtpmx::$test = false |
Definition at line 128 of file smtpmx.php.
Mail_smtpmx::$timeout = 10 |
Definition at line 92 of file smtpmx.php.
Mail_smtpmx::$verp = false |
Definition at line 114 of file smtpmx.php.
Referenced by send().
boolean Mail_smtpmx::$vrfy = false |
Whether to use VRFY or not.
Definition at line 121 of file smtpmx.php.
Mail_smtpmx::$withNetDns = true |
Definition at line 99 of file smtpmx.php.