PHPMailer\PHPMailer

PHPMailer::addReplyTo()publicWP 1.0

Add a "Reply-To" address.

Метод класса: PHPMailer{}

Хуков нет.

Возвращает

true|false. true on success, false if address already used or invalid in some way

Использование

$PHPMailer = new PHPMailer();
$PHPMailer->addReplyTo( $address, $name );
$address(строка) (обязательный)
The email address to reply to
$name(строка)
-
По умолчанию: ''

Код PHPMailer::addReplyTo() WP 6.6.2

public function addReplyTo($address, $name = '')
{
    return $this->addOrEnqueueAnAddress('Reply-To', $address, $name);
}