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], [ $pop_host = ''], [ $stream_options = array()])
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 463)
void authPop ([ $pop_server = ''], [ $pop_port = ''],  $user,  $pass)
  • $pop_server
  • $pop_port
  • $user
  • $pass
errorCheck (line 397)
void errorCheck ( $line,  $smtpConnection)
  • $line
  • $smtpConnection
finalizeStream (line 384)
void finalizeStream ( $stream)
  • $stream
initStream (line 65)
void initStream ( $message,  $domain, [ $length = 0], [ $host = ''], [ $port = ''], [ $user = ''], [ $pass = ''], [ $authpop = false], [ $pop_host = ''], [ $stream_options = array()])
  • $message
  • $domain
  • $length
  • $host
  • $port
  • $user
  • $pass
  • $authpop
  • $pop_host
  • $stream_options

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

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::send_mail()
Deliver::strip_crlf()
Deliver::timezone()
Deliver::writeBody()
Deliver::writeBodyPart()
Deliver::writeToStream()

Documentation generated on Wed, 16 Apr 2014 04:17:38 +0200 by phpDocumentor 1.4.3