protected function POP3::sendString

5.x POP3.php protected POP3::sendString($string)

Send raw data to the POP3 server.

Parameters

string $string:

Return value

int

2 calls to POP3::sendString()
POP3::disconnect in inc/PHPMailer/src/POP3.php
Disconnect from the POP3 server.
POP3::login in inc/PHPMailer/src/POP3.php
Log in to the POP3 server. Does not support APOP (RFC 2828, 4949).

File

inc/PHPMailer/src/POP3.php, line 344

Class

POP3
PHPMailer POP-Before-SMTP Authentication Class. Specifically for PHPMailer to use for RFC1939 POP-before-SMTP authentication. 1) This class does not support APOP authentication. 2) Opening and closing lots of POP3 connections can be quite slow. If you…

Namespace

PHPMailer\PHPMailer

Code

protected function sendString($string) 
 {
  if ($this->pop_conn) {
    if ($this->do_debug >= 2) { //Show client messages when debug >= 2
      echo 'Client -> Server: ', $string;
    }

    return fwrite($this->pop_conn, $string, strlen($string));
  }

  return 0;
}