PHPMailer\PHPMailer

PHPMailer::addReplyTo()publicWP 1.0

Add a "Reply-To" address.

{} It's a 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: ''

Code of PHPMailer::addReplyTo() WP 6.0

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