PHPMailer\PHPMailer\SMTP::mail PHP Метод

mail() публичный Метод

Starts a mail transaction from the email address specified in $from. Returns true if successful or false otherwise. If True the mail transaction is started and then one or more recipient commands may be called followed by a data command. Implements rfc 821: MAIL FROM:
public mail ( string $from ) : boolean
$from string Source address of this message
Результат boolean
    public function mail($from)
    {
        $useVerp = $this->do_verp ? ' XVERP' : '';
        return $this->sendCommand('MAIL FROM', 'MAIL FROM:<' . $from . '>' . $useVerp, 250);
    }