API16

JMail/setSubject

From Joomla! Documentation

< API16:JMail
Revision as of 01:53, 25 March 2017 by JoomlaWikiBot (talk | contribs) (preparing for archive only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 subject



Syntax[edit]

setSubject($subject)
Parameter Name Default Value Description
$subject $subject Subject 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 setSubject($subject) {
        $this->Subject = JMailHelper::cleanLine($subject);
}



Examples[edit]

Code Examples[edit]