Difference between revisions of "JUtility::sendMail"

From Joomla! Documentation

(Updated to r1448:247ba8d88526)
m (JoomlaWikiBot moved page JUtility::sendMail/11.1 to API17:JUtility::sendMail without leaving a redirect: Robot: Moved page)
(No difference)

Revision as of 21:54, 10 May 2013

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JUtility::sendMail[edit]


Mail function (uses phpMailer).

Template:Description:JUtility::sendMail [Edit Descripton]

public static function sendMail (
Parameter Type Default Description
$from string From email address
$fromname string From name
$recipient mixed Recipient email address(es)
$subject string Email subject
$body string Message body
$mode boolean 0 false = plain text, true = HTML
$cc mixed null CC email address(es)
$bcc mixed null BCC email address(es)
$attachment mixed null Attachment file name(s)
$replyto mixed null Reply to email address(es)
$replytoname mixed null Reply to name(s)
  • Returns boolean True on success
  • Defined on line 43 of libraries/joomla/utilities/utility.php
  • Since Joomla 11.1

See also[edit]

Template:SeeAlso:JUtility::sendMail [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />