Class Deliver_SMTP

Description

Deliver messages using SMTP

  • author: Marc Groot Koerkamp

Located in /class/deliver/Deliver_SMTP.class.php (line 24)

Deliver
   |
   --Deliver_SMTP
Variable Summary
string $dlv_msg
integer $dlv_ret_nr
string $domain
array $ehlo
boolean $tls_enabled
Method Summary
void authPop ([ $pop_server = ''], [ $pop_port = ''],  $user,  $pass)
void errorCheck ( $line,  $smtpConnection)
void finalizeStream ( $stream)
void initStream ( $message,  $domain, [ $length = 0], [ $host = ''], [ $port = ''], [ $user = ''], [ $pass = ''], [ $authpop = false])
string parse_ehlo_response (stream $stream)
void preWriteToStream ( &$s)
Variables
string $dlv_msg = '' (line 52)
  • var: delivery error message
integer $dlv_ret_nr = '' (line 54)
  • var: delivery error number from server
string $dlv_server_msg = '' (line 56)
  • var: delivery error message from server
string $domain = '' (line 36)
  • var: domain
  • since: 1.5.1
array $ehlo = array() (line 31)

Array keys are uppercased ehlo keywords array key values are ehlo params. If ehlo-param contains space, it is splitted into array.

  • var: ehlo
  • since: 1.5.1
boolean $tls_enabled = false (line 44)

SMTP STARTTLS rfc: "Both the client and the server MUST know if there is a TLS session active." Variable should be set to true, when encryption is turned on.

  • since: 1.5.1
Methods
authPop (line 426)
void authPop ([ $pop_server = ''], [ $pop_port = ''],  $user,  $pass)
  • $pop_server
  • $pop_port
  • $user
  • $pass
errorCheck (line 360)
void errorCheck ( $line,  $smtpConnection)
  • $line
  • $smtpConnection
finalizeStream (line 347)
void finalizeStream ( $stream)
  • $stream
initStream (line 65)
void initStream ( $message,  $domain,  $length, [ $host = ''], [ $port = ''], [ $user = ''], [ $pass = ''], [ $authpop = false])
  • $message
  • $domain
  • $length
  • $host
  • $port
  • $user
  • $pass
  • $authpop

Redefinition of:
Deliver::initStream()
function initStream - reserved for extended functionality
parse_ehlo_response (line 466)

Parses ESMTP EHLO response (rfc1869)

Reads SMTP response to EHLO command and fills class variables (ehlo array and domain string). Returns last line.

  • return: last ehlo line
  • since: 1.5.1
string parse_ehlo_response (stream $stream)
  • stream $stream: smtp connection stream.
preWriteToStream (line 58)
void preWriteToStream ( &$s)
  • &$s

Redefinition of:
Deliver::preWriteToStream()
function preWriteToStream - reserved for extended functionality

Inherited Methods

Inherited From Deliver

Deliver::calculate_references()
Deliver::clean_crlf()
Deliver::foldLine()
Deliver::getBCC()
Deliver::initStream()
Deliver::ip2hex()
Deliver::mail()
Deliver::mimeBoundary()
Deliver::prepareMIME_Header()
Deliver::prepareRFC822_Header()
Deliver::preWriteToStream()
Deliver::strip_crlf()
Deliver::timezone()
Deliver::writeBody()
Deliver::writeBodyPart()
Deliver::writeToStream()

Documentation generated on Sat, 07 Oct 2006 16:10:40 +0300 by phpDocumentor 1.3.0RC6