EC-CUBE
Public メソッド | 変数
クラス Net_SMTP

Public メソッド

 Net_SMTP ($host=null, $port=null, $localhost=null, $pipelining=false)
 setDebug ($debug, $handler=null)
 _debug ($message)
 _send ($data)
 _put ($command, $args= '')
 _parseResponse ($valid, $later=false)
 getResponse ()
 getGreeting ()
 connect ($timeout=null, $persistent=false)
 disconnect ()
 _negotiate ()
 _getBestAuthMethod ()
 auth ($uid, $pwd, $method= '', $tls=true, $authz= '')
 _authDigest_MD5 ($uid, $pwd, $authz= '')
 _authCRAM_MD5 ($uid, $pwd)
 _authLogin ($uid, $pwd)
 _authPlain ($uid, $pwd, $authz= '')
 helo ($domain)
 getServiceExtensions ()
 mailFrom ($sender, $params=null)
 rcptTo ($recipient, $params=null)
 quotedata (&$data)
 data ($data, $headers=null)
 sendFrom ($path)
 send_from ($path)
 somlFrom ($path)
 soml_from ($path)
 samlFrom ($path)
 saml_from ($path)
 rset ()
 vrfy ($string)
 noop ()
 identifySender ()

変数

 $host = 'localhost'
 $port = 25
 $localhost = 'localhost'
 $auth_methods = array('DIGEST-MD5', 'CRAM-MD5', 'LOGIN', 'PLAIN')
 $pipelining = false
 $_pipelined_commands = 0
 $_debug = false
 $_debug_handler = null
 $_socket = null
 $_code = -1
 $_arguments = array()
 $_greeting = null
 $_esmtp = array()

関数

_authCRAM_MD5 ( uid,
pwd 
)

Authenticates the user using the CRAM-MD5 method.

引数:
stringThe userid to authenticate as.
stringThe password to authenticate with.
戻り値:
mixed Returns a PEAR_Error with an error message on any kind of failure, or true on success. private
から:
1.1.0
_authDigest_MD5 ( uid,
pwd,
authz = '' 
)

Authenticates the user using the DIGEST-MD5 method.

引数:
stringThe userid to authenticate as.
stringThe password to authenticate with.
stringThe optional authorization proxy identifier.
戻り値:
mixed Returns a PEAR_Error with an error message on any kind of failure, or true on success. private
から:
1.1.0
_authLogin ( uid,
pwd 
)

Authenticates the user using the LOGIN method.

引数:
stringThe userid to authenticate as.
stringThe password to authenticate with.
戻り値:
mixed Returns a PEAR_Error with an error message on any kind of failure, or true on success. private
から:
1.1.0
_authPlain ( uid,
pwd,
authz = '' 
)

Authenticates the user using the PLAIN method.

引数:
stringThe userid to authenticate as.
stringThe password to authenticate with.
stringThe optional authorization proxy identifier.
戻り値:
mixed Returns a PEAR_Error with an error message on any kind of failure, or true on success. private
から:
1.1.0
_debug ( message)

Write the given debug text to the current debug output handler.

引数:
string$messageDebug mesage text.

private

から:
1.3.3

Returns the name of the best authentication method that the server has advertised.

戻り値:
mixed Returns a string containing the name of the best supported authentication method or a PEAR_Error object if a failure condition is encountered. private
から:
1.1.0

Attempt to send the EHLO command and obtain a list of ESMTP extensions available, and failing that just send HELO.

戻り値:
mixed Returns a PEAR_Error with an error message on any kind of failure, or true on success.

private

から:
1.1.0
_parseResponse ( valid,
later = false 
)

Read a reply from the SMTP server. The reply consists of a response code and a response message.

引数:
mixed$validThe set of valid response codes. These may be specified as an array of integer values or as a single integer value.
bool$laterDo not parse the response now, but wait until the last command in the pipelined command group
戻り値:
mixed True if the server returned a valid response code or a PEAR_Error object is an error condition is reached.

private

から:
1.1.0
参照:
getResponse
_put ( command,
args = '' 
)

Send a command to the server with an optional string of arguments. A carriage return / linefeed (CRLF) sequence will be appended to each command string before it is sent to the SMTP server - an error will be thrown if the command string already contains any newline characters. Use _send() for commands that must contain newlines.

引数:
string$commandThe SMTP command to send to the server.
string$argsA string of optional arguments to append to the command.
戻り値:
mixed The result of the _send() call.

private

から:
1.1.0
_send ( data)

Send the given string of data to the server.

引数:
string$dataThe string of data to send.
戻り値:
mixed True on success or a PEAR_Error object on failure.

private

から:
1.1.0
auth ( uid,
pwd,
method = '',
tls = true,
authz = '' 
)

Attempt to do SMTP authentication.

引数:
stringThe userid to authenticate as.
stringThe password to authenticate with.
stringThe requested authentication method. If none is specified, the best supported method will be used.
boolFlag indicating whether or not TLS should be attempted.
stringAn optional authorization identifier. If specified, this identifier will be used as the authorization proxy.
戻り値:
mixed Returns a PEAR_Error with an error message on any kind of failure, or true on success. public
から:
1.0
connect ( timeout = null,
persistent = false 
)

Attempt to connect to the SMTP server.

引数:
int$timeoutThe timeout value (in seconds) for the socket connection.
bool$persistentShould a persistent socket connection be used?
戻り値:
mixed Returns a PEAR_Error with an error message on any kind of failure, or true on success. public
から:
1.0
data ( data,
headers = null 
)

Send the DATA command.

引数:
mixed$dataThe message data, either as a string or an open file resource.
string$headersThe message headers. If $headers is provided, $data is assumed to contain only body data.
戻り値:
mixed Returns a PEAR_Error with an error message on any kind of failure, or true on success. public
から:
1.0

Attempt to disconnect from the SMTP server.

戻り値:
mixed Returns a PEAR_Error with an error message on any kind of failure, or true on success. public
から:
1.0

Return the SMTP server's greeting string.

戻り値:
string A string containing the greeting string, or null if a greeting has not been received.

public

から:
1.3.3

Return a 2-tuple containing the last response from the SMTP server.

戻り値:
array A two-element array: the first element contains the response code as an integer and the second element contains the response's arguments as a string.

public

から:
1.1.0

Return the list of SMTP service extensions advertised by the server.

戻り値:
array The list of SMTP service extensions. public
から:
1.3
helo ( domain)

Send the HELO command.

引数:
stringThe domain name to say we are.
戻り値:
mixed Returns a PEAR_Error with an error message on any kind of failure, or true on success. public
から:
1.0

Backwards-compatibility method. identifySender()'s functionality is now handled internally.

戻り値:
boolean This method always return true.

public

から:
1.0
mailFrom ( sender,
params = null 
)

Send the MAIL FROM: command.

引数:
string$senderThe sender (reverse path) to set.
string$paramsString containing additional MAIL parameters, such as the NOTIFY flags defined by RFC 1891 or the VERP protocol.

If $params is an array, only the 'verp' option is supported. If 'verp' is true, the XVERP parameter is appended to the MAIL command. If the 'verp' value is a string, the full XVERP=value parameter is appended.

戻り値:
mixed Returns a PEAR_Error with an error message on any kind of failure, or true on success. public
から:
1.0
Net_SMTP ( host = null,
port = null,
localhost = null,
pipelining = false 
)

Instantiates a new Net_SMTP object, overriding any defaults with parameters that are passed in.

If you have SSL support in PHP, you can connect to a server over SSL using an 'ssl://' prefix:

// 465 is a common smtps port. $smtp = new Net_SMTP('ssl://mail.host.com', 465); $smtp->connect();

引数:
string$hostThe server to connect to.
integer$portThe port to connect to.
string$localhostThe value to give when sending EHLO or HELO.
boolean$pipelingUse SMTP command pipelining

public

から:
1.0
noop ( )

Send the NOOP command.

戻り値:
mixed Returns a PEAR_Error with an error message on any kind of failure, or true on success. public
から:
1.0
quotedata ( &$  data)

Quote the data so that it meets SMTP standards.

This is provided as a separate public function to facilitate easier overloading for the cases where it is desirable to customize the quoting behavior.

引数:
string$dataThe message text to quote. The string must be passed by reference, and the text will be modified in place.

public

から:
1.2
rcptTo ( recipient,
params = null 
)

Send the RCPT TO: command.

引数:
string$recipientThe recipient (forward path) to add.
string$paramsString containing additional RCPT parameters, such as the NOTIFY flags defined by RFC 1891.
戻り値:
mixed Returns a PEAR_Error with an error message on any kind of failure, or true on success.

public

から:
1.0
rset ( )

Send the RSET command.

戻り値:
mixed Returns a PEAR_Error with an error message on any kind of failure, or true on success. public
から:
1.0
saml_from ( path)

Backwards-compatibility wrapper for samlFrom().

引数:
stringThe reverse path to send.
戻り値:
mixed Returns a PEAR_Error with an error message on any kind of failure, or true on success.

public

から:
1.0
非推奨:
1.2.6
samlFrom ( path)

Send the SAML FROM: command.

引数:
stringThe reverse path to send.
戻り値:
mixed Returns a PEAR_Error with an error message on any kind of failure, or true on success. public
から:
1.2.6
send_from ( path)

Backwards-compatibility wrapper for sendFrom().

引数:
stringThe reverse path to send.
戻り値:
mixed Returns a PEAR_Error with an error message on any kind of failure, or true on success.

public

から:
1.0
非推奨:
1.2.6
sendFrom ( path)

Send the SEND FROM: command.

引数:
stringThe reverse path to send.
戻り値:
mixed Returns a PEAR_Error with an error message on any kind of failure, or true on success. public
から:
1.2.6
setDebug ( debug,
handler = null 
)

Set the value of the debugging flag.

引数:
boolean$debugNew value for the debugging flag.

public

から:
1.1.0
soml_from ( path)

Backwards-compatibility wrapper for somlFrom().

引数:
stringThe reverse path to send.
戻り値:
mixed Returns a PEAR_Error with an error message on any kind of failure, or true on success.

public

から:
1.0
非推奨:
1.2.6
somlFrom ( path)

Send the SOML FROM: command.

引数:
stringThe reverse path to send.
戻り値:
mixed Returns a PEAR_Error with an error message on any kind of failure, or true on success. public
から:
1.2.6
vrfy ( string)

Send the VRFY command.

引数:
stringThe string to verify
戻り値:
mixed Returns a PEAR_Error with an error message on any kind of failure, or true on success. public
から:
1.0

このクラスの説明は次のファイルから生成されました:
 全て データ構造 ネームスペース 関数 変数