Class Deliver_SMTP

Description

Deliver messages using SMTP

  • author: Marc Groot Koerkamp

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

Deliver
   |
   --Deliver_SMTP
Variable Summary
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 $domain = '' (line 35)
  • var: domain
  • since: 1.4.23 and 1.5.1
array $ehlo = array() (line 29)

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.4.23 and 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.4.23 and 1.5.1
Methods
authPop (line 460)
void authPop ([ $pop_server = ''], [ $pop_port = ''],  $user,  $pass)
  • $pop_server
  • $pop_port
  • $user
  • $pass
errorCheck (line 394)
void errorCheck ( $line,  $smtpConnection)
  • $line
  • $smtpConnection
finalizeStream (line 381)
void finalizeStream ( $stream)
  • $stream
initStream (line 53)
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 500)

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.4.23 and 1.5.1
string parse_ehlo_response (stream $stream)
  • stream $stream: smtp connection stream.
preWriteToStream (line 46)
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 Mon, 13 Jan 2020 04:24:32 +0100 by phpDocumentor 1.4.3