API16

JMail/setBody

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]

Set the E-Mail body



Syntax[edit]

setBody($content)
Parameter Name Default Value Description
$content $content Body of the e-mail

Returns[edit]

void

Defined in[edit]

libraries/joomla/mail/mail.php

Importing[edit]

jimport( 'joomla.mail.mail' );

Source Body[edit]

public function setBody($content)
{
        /*
         * Filter the Body
         * TODO: Check for XSS
         */
        $this->Body = JMailHelper::cleanText($content);
}



Examples[edit]

Code Examples[edit]