PHPMailer\PHPMailer

PHPMailer::addReplyTo()publicWP 1.0

Add a "Reply-To" address.

Method of the class: PHPMailer{}

No Hooks.

Return

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

Usage

$PHPMailer = new PHPMailer();
$PHPMailer->addReplyTo( $address, $name );
$address(string) (required)
The email address to reply to
$name(string)
-
Default: ''

PHPMailer::addReplyTo() code WP 6.6.2

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