Actions

API15

JMail/addReplyTo

From Joomla! Documentation

< API15:JMail
Revision as of 17:24, 22 March 2010 by Doxiki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

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 />