Actions

API15

JMail/addReplyTo

From Joomla! Documentation

< API15: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

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

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

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

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />