Actions

API16

JMail/addReplyTo

< 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

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



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



Examples

Code Examples


Advertisement