Back to Mail class

Method 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
  • 1.7.0
-
  • \PHPMailer\PHPMailer\Exception if exception throwing is enabled
Class: Mail
Project: Joomla

Method addReplyTo - Source code

/**
 * Add Reply to email address(es) to the email
 *
 * @param   mixed  $replyto  Either a string or array of strings [email address(es)]
 * @param   mixed  $name     Either a string or array of strings [name(s)]
 *
 * @return  Mail|boolean  Returns this object for chaining on success or boolean false on failure when exception throwing is disabled.
 *
 * @since   1.7.0
 *
 * @throws  phpmailerException  if exception throwing is enabled
 */
public function addReplyTo($replyto, $name = '')
{
    return $this->add($replyto, $name, 'addReplyTo');
}