private commandRcptTo ( string $recipient ) | ||
$recipient | string |
private function commandRcptTo(string $recipient)
{
$this->writeData('RCPT TO: <' . $recipient . '>');
$response = $this->readData();
if ('250' !== substr($response, 0, 3)) {
throw new SmtpException('RCPT TO: ' . $response);
}
}