You are here

function SMTP::Turn in SMTP Authentication Support 5

Same name and namespace in other branches
  1. 7.2 smtp.transport.inc \SMTP::Turn()
  2. 7 smtp.transport.inc \SMTP::Turn()

This is an optional command for SMTP that this class does not support. This method is here to make the RFC821 Definition complete for this class and __may__ be implimented in the future

Implements from rfc 821: TURN <CRLF>

SMTP CODE SUCCESS: 250 SMTP CODE FAILURE: 502 SMTP CODE ERROR : 500, 503 @access public

Return value

bool

File

./smtp.module, line 2928
Enables drupal to send email directly to an SMTP server using authentication. Uses the PHPMailer class by Brent R. Matzelle.

Class

SMTP
SMTP is rfc 821 compliant and implements all the rfc 821 SMTP commands except TURN which will always return a not implemented error. SMTP also provides some utility methods for sending mail to an SMTP server. @package PHPMailer @author Chris Ryan

Code

function Turn() {
  $this->error = array(
    "error" => "This method, TURN, of the SMTP " . "is not implemented",
  );
  if ($this->do_debug >= 1) {
    echo "SMTP -> NOTICE: " . $this->error["error"] . $this->CRLF;
  }
  return false;
}