\JMailHelper
Email helper class, provides static methods to perform various tasks relevant to the Joomla email routines.
TODO: Test these methods as the regex work is first run and not tested thoroughly
Synopsis
class JMailHelper
{
- // methods
- public static string cleanLine()
- public static string cleanText()
- public static string cleanBody()
- public static string cleanSubject()
- public static mixed cleanAddress()
- public static boolean isEmailAddress()
Methods
public
- cleanAddress() — Verifies that an email address does not have any extra headers injected into it.
- cleanBody() — Cleans any injected headers from the email body.
- cleanLine() — Cleans single line inputs.
- cleanSubject() — Cleans any injected headers from the subject string.
- cleanText() — Cleans multi-line inputs.
- isEmailAddress() — Verifies that the string is in a proper email address format.