API16

JMailHelper: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
No edit summary
m clean up
Line 1: Line 1:
<span class="editsection" style="font-size:76%;">
{{subst:Description:JMailHelper}}
<nowiki>[</nowiki>[[Description:JMailHelper|Edit Descripton]]<nowiki>]</nowiki>
</span>
{{Description:JMailHelper}}


===Defined in===
===Defined in===
Line 34: Line 31:
<source lang="php">jimport( 'joomla.mail.helper' );</source>
<source lang="php">jimport( 'joomla.mail.helper' );</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JMailHelper|Edit See Also]]<nowiki>]</nowiki>
{{subst:SeeAlso:JMailHelper}}
</span>
{{SeeAlso:JMailHelper}}


===Examples===
===Examples===

Revision as of 14:14, 24 March 2017

{{subst:Description:JMailHelper}}

Defined in

libraries/joomla/mail/helper.php

Methods

Method name Description
cleanLine Cleans single line inputs.
cleanText Cleans multi-line inputs.
cleanBody Cleans any injected headers from the E-Mail body.
cleanSubject Cleans any injected headers from the subject string.
cleanAddress Verifies that an e-mail address does not have any extra headers injected into it.
isEmailAddress Verifies that the string is in a proper e-mail address format.

Importing

jimport( 'joomla.mail.helper' );


{{subst:SeeAlso:JMailHelper}}

Examples

<CodeExamplesForm />