MailHelper
class MailHelper
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
Methods
static
string
cleanLine(
string $value)
Cleans single line inputs.
static
string
cleanText(
string $value)
Cleans multi-line inputs.
static
string
cleanBody(
string $body)
Cleans any injected headers from the email body.
static
string
cleanSubject(
string $subject)
Cleans any injected headers from the subject string.
static
mixed
cleanAddress(
string $address)
Verifies that an email address does not have any extra headers injected into it.
static
boolean
isEmailAddress(
string $email)
Verifies that the string is in a proper email address format.