API17

JMailHelper: Difference between revisions

From Joomla! Documentation

Doxiki2 (talk | contribs)
Bulk upload by Doxiki2
 
m preparing for archive only
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
<span class="editsection" style="font-size:76%;">
=={{JVer|11.1}} JMailHelper==
<nowiki>[</nowiki>[[Description:JMailHelper|Edit Descripton]]<nowiki>]</nowiki>
===Description===
</span>
 
{{Description:JMailHelper}}
 
===Defined in===
libraries/joomla/mail/helper.php
===Subpackage===
[[Subpackage Mail/11.1|Mail]]
===Extends===
===Extended by===
===Methods===
===Methods===
{| class="wikitable sortable"
{| class="wikitable sortable"
|-
|-
!Visibility
!Method name
!Method name
!Description
!Description
|-
|-
|[[JMailHelper::cleanAddress/11.1|cleanAddress]]
|public static
|[[API17:JMailHelper::cleanAddress|cleanAddress]]
|Verifies that an email address does not have any extra headers injected into it.  
|Verifies that an email address does not have any extra headers injected into it.  
|-
|-
|[[JMailHelper::cleanBody/11.1|cleanBody]]
|public static
|[[API17:JMailHelper::cleanBody|cleanBody]]
|Cleans any injected headers from the email body.  
|Cleans any injected headers from the email body.  
|-
|-
|[[JMailHelper::cleanLine/11.1|cleanLine]]
|public static
|[[API17:JMailHelper::cleanLine|cleanLine]]
|Cleans single line inputs.  
|Cleans single line inputs.  
|-
|-
|[[JMailHelper::cleanSubject/11.1|cleanSubject]]
|public static
|[[API17:JMailHelper::cleanSubject|cleanSubject]]
|Cleans any injected headers from the subject string.  
|Cleans any injected headers from the subject string.  
|-
|-
|[[JMailHelper::cleanText/11.1|cleanText]]
|public static
|[[API17:JMailHelper::cleanText|cleanText]]
|Cleans multi-line inputs.  
|Cleans multi-line inputs.  
|-
|-
|[[JMailHelper::isEmailAddress/11.1|isEmailAddress]]
|public static
|[[API17:JMailHelper::isEmailAddress|isEmailAddress]]
|Verifies that the string is in a proper email address format.  
|Verifies that the string is in a proper email address format.  
|-
|-
|}
|}
* '''Defined in''' libraries/joomla/mail/helper.php
===Importing===
===Importing===
<source lang="php">jimport( 'joomla.mail.helper' );</source>
<source lang="php">jimport( 'joomla.mail.helper' );</source>
===See also===
===See also===
* [[JMailHelper|Other versions of this class]]
* {{JVer|11.1}} '''JMailHelper source code''' on [[jplatform:mail/helper.php|BitBucket]]
{{SeeAlso:JMailHelper}}
* {{JVer|11.1}} Subpackage [[API17:Subpackage Mail|Mail]]
<span class="editsection" style="font-size:76%;">
* [[API17:JMailHelper|Other versions of JMailHelper]]
<nowiki>[</nowiki>[[SeeAlso:JMailHelper|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
===Examples===
===User contributed notes===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
noresultsheader=\n
noresultsheader=\n
category=JMailHelper
category=JMailHelper
category=CodeExample
namespace=CodeExample
category=ClassExample
category=ClassExample
include=*
include=*
namespace=CodeExample
format= ,,,
format= ,,,
</dpl>
</dpl>
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JMailHelper]]</noinclude>
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 03:25, 25 March 2017

Joomla 11.1 JMailHelper

Description

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


User contributed notes

Code Examples