public function SMTP::Turn in SMTP Authentication Support 7.2
Same name and namespace in other branches
- 5 smtp.module \SMTP::Turn()
- 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 implemented 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.transport.inc, line 768 - SMTP mail transport class for the smtp module,based on code of the phpmailer library, customized and relicensed to GPLv2
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. original author: Chris Ryan
Code
public function Turn() {
$this->error = array(
"error" => "This method, TURN, of the SMTP is not implemented",
);
if ($this->do_debug >= 1) {
drupal_set_message(t("SMTP -> NOTICE: @error", array(
"@error" => $this->error["error"],
)));
}
return FALSE;
}