Actions

API16

JMail/addReplyTo

From Joomla! Documentation

< API16:JMail
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Contents

Description

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

[Edit Descripton]

Description:JMail/addReplyTo

Syntax

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

Returns

void

Defined in

libraries/joomla/mail/mail.php

Importing

jimport( 'joomla.mail.mail' );

Source Body

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);
        }
}

[Edit See Also] SeeAlso:JMail/addReplyTo

Examples

<CodeExamplesForm />