⇦ Back to Mail classMethod addReplyTo
public \Joomla\CMS\Mail\Mail|bool
addReplyTo
(mixed $replyto, mixed $name = '')
Add Reply to email address(es) to the email
Parameters
- mixed $replyto Either a string or array of strings [email address(es)]
- mixed $name Either a string or array of strings [name(s)]
Returns
- \Joomla\CMS\Mail\Mail|bool Returns this object for chaining on success or boolean false on failure when exception throwing is disabled.
Since
-
- \PHPMailer\PHPMailer\Exception if exception throwing is enabled
Method addReplyTo - Source code
public function addReplyTo($replyto, $name = '')
{
return $this->add($replyto, $name, 'addReplyTo');
}