API16

JMail/addReplyTo

From Joomla! Documentation

< API16:JMail

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Add Reply to e-mail address(es) to the e-mail



Syntax[edit]

addReplyTo($replyto)
Parameter Name Default Value Description
$replyto $reply Either an array or multi-array of form

Returns[edit]

void

Defined in[edit]

libraries/joomla/mail/mail.php

Importing[edit]

jimport( 'joomla.mail.mail' );

Source Body[edit]

public function addReplyTo($replyto)
{
        // Take care of reply email addresses
        if (is_array($replyto[0]))
        {
                foreach ($replyto as $to) {
                        $to0 = JMailHelper::cleanLine($to[0]);
                        $to1 = JMailHelper::cleanLine($to[1]);
                        parent::AddReplyTo($to0, $to1);
                }
        } else {
                $replyto0 = JMailHelper::cleanLine($replyto[0]);
                $replyto1 = JMailHelper::cleanLine($replyto[1]);
                parent::AddReplyTo($replyto0, $replyto1);
        }
}



Examples[edit]

Code Examples[edit]