[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Mail/ -> MailHelper.php (summary)

Joomla! Content Management System

Copyright: (C) 2007 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 268 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 8 functions

  cleanLine()
  cleanText()
  cleanBody()
  cleanSubject()
  cleanAddress()
  isEmailAddress()
  convertRelativeToAbsoluteUrls()
  checkContent()

Functions
Functions that are not part of a class:

cleanLine($value)   X-Ref
Cleans single line inputs.

param: string  $value  String to be cleaned.
return: string  Cleaned string.

cleanText($value)   X-Ref
Cleans multi-line inputs.

param: string  $value  Multi-line string to be cleaned.
return: string  Cleaned multi-line string.

cleanBody($body)   X-Ref
Cleans any injected headers from the email body.

param: string  $body  email body string.
return: string  Cleaned email body string.

cleanSubject($subject)   X-Ref
Cleans any injected headers from the subject string.

param: string  $subject  email subject string.
return: string  Cleaned email subject string.

cleanAddress($address)   X-Ref
Verifies that an email address does not have any extra headers injected into it.

param: string  $address  email address.
return: mixed   email address string or boolean false if injected headers are present.

isEmailAddress($email)   X-Ref
Verifies that the string is in a proper email address format.

param: string  $email  String to be verified.
return: boolean  True if string has the correct format; false otherwise.

convertRelativeToAbsoluteUrls($content)   X-Ref
Convert relative (links, images sources) to absolute urls so that content is accessible in email

param: string  $content  The content need to convert
return: string  The converted content which the relative urls are converted to absolute urls

checkContent($content)   X-Ref
Check the content after regular expression function call.

param: string  $content  Content to be checked.
return: void



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer