JMailHelper: Difference between revisions
From Joomla! Documentation
m →User contributed notes: moving preparation |
m moving preparation |
||
| Line 14: | Line 14: | ||
|- | |- | ||
|public static | |public static | ||
|[[JMailHelper::cleanAddress | |[[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. | ||
|- | |- | ||
|public static | |public static | ||
|[[JMailHelper::cleanBody | |[[API17:JMailHelper::cleanBody|cleanBody]] | ||
|Cleans any injected headers from the email body. | |Cleans any injected headers from the email body. | ||
|- | |- | ||
|public static | |public static | ||
|[[JMailHelper::cleanLine | |[[API17:JMailHelper::cleanLine|cleanLine]] | ||
|Cleans single line inputs. | |Cleans single line inputs. | ||
|- | |- | ||
|public static | |public static | ||
|[[JMailHelper::cleanSubject | |[[API17:JMailHelper::cleanSubject|cleanSubject]] | ||
|Cleans any injected headers from the subject string. | |Cleans any injected headers from the subject string. | ||
|- | |- | ||
|public static | |public static | ||
|[[JMailHelper::cleanText | |[[API17:JMailHelper::cleanText|cleanText]] | ||
|Cleans multi-line inputs. | |Cleans multi-line inputs. | ||
|- | |- | ||
|public static | |public static | ||
|[[JMailHelper::isEmailAddress | |[[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. | ||
|- | |- | ||
| Line 43: | Line 43: | ||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JMailHelper source code''' on [[jplatform:mail/helper.php|BitBucket]] | * {{JVer|11.1}} '''JMailHelper source code''' on [[jplatform:mail/helper.php|BitBucket]] | ||
* {{JVer|11.1}} Subpackage [[Subpackage Mail | * {{JVer|11.1}} Subpackage [[API17:Subpackage Mail|Mail]] | ||
* [[JMailHelper|Other versions of JMailHelper]] | * [[API17:JMailHelper|Other versions of JMailHelper]] | ||
{{SeeAlso:JMailHelper}} | {{SeeAlso:JMailHelper}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
Revision as of 02:11, 12 May 2013
JMailHelper
Description
Template:Description:JMailHelper [Edit Descripton]
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
JMailHelper source code on BitBucket
Subpackage Mail- Other versions of JMailHelper
Template:SeeAlso:JMailHelper [Edit See Also]
User contributed notes
<CodeExamplesForm />