API17

JMailHelper: Difference between revisions

From Joomla! Documentation

m moving preparation
m clean up
Line 2: Line 2:
=={{JVer|11.1}} JMailHelper==
=={{JVer|11.1}} JMailHelper==
===Description===
===Description===
{{Description:JMailHelper}}
{{subst:Description:JMailHelper}}
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JMailHelper|Edit Descripton]]<nowiki>]</nowiki>
</span>
===Methods===
===Methods===
{| class="wikitable sortable"
{| class="wikitable sortable"
Line 45: Line 43:
* {{JVer|11.1}} Subpackage [[API17:Subpackage Mail|Mail]]
* {{JVer|11.1}} Subpackage [[API17:Subpackage Mail|Mail]]
* [[API17:JMailHelper|Other versions of JMailHelper]]
* [[API17:JMailHelper|Other versions of JMailHelper]]
{{SeeAlso:JMailHelper}}
{{subst:SeeAlso:JMailHelper}}
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JMailHelper|Edit See Also]]<nowiki>]</nowiki>
</span>
===User contributed notes===
===User contributed notes===
<CodeExamplesForm />
<CodeExamplesForm />

Revision as of 15:51, 24 March 2017

Joomla 11.1 JMailHelper

Description

{{subst:Description:JMailHelper}}

Methods

Visibility Method name Description
public static cleanAddress Verifies that an email address does not have any extra headers injected into it.
public static cleanBody Cleans any injected headers from the email body.
public static cleanLine Cleans single line inputs.
public static cleanSubject Cleans any injected headers from the subject string.
public static cleanText Cleans multi-line inputs.
public static isEmailAddress Verifies that the string is in a proper email address format.
  • Defined in libraries/joomla/mail/helper.php

Importing

jimport( 'joomla.mail.helper' );

See also

{{subst:SeeAlso:JMailHelper}}

User contributed notes

<CodeExamplesForm />