API17

Difference between revisions of "JUtility::sendMail"

From Joomla! Documentation

(Layout updates)
(Updated to r1448:247ba8d88526)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JUtility::sendMail|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JUtility::sendMail|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Since===
 
{{JVer|11.1 }}
 
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JUtility::sendMail ($from, $fromname, $recipient, $subject, $body, $mode=0, $cc=null, $bcc=null, $attachment=null, $replyto=null, $replytoname=null)
+
public static function sendMail (
 +
        $from
 +
        $fromname
 +
        $recipient
 +
        $subject
 +
        $body
 +
        $mode=0
 +
        $cc=null
 +
        $bcc=null
 +
        $attachment=null
 +
        $replyto=null
 +
        $replytoname=null
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 74: Line 83:
 
|mixed
 
|mixed
 
|null
 
|null
|Reply to name(s)  
+
|Reply to name(s)
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns''' boolean True on success
boolean True on success
+
* '''Defined''' on line 43 of libraries/joomla/utilities/utility.php
===Defined in===
+
* '''Since''' {{JVer|11.1 }}
libraries/joomla/utilities/utility.php (line 42)
 
* see source code in [[jplatform:utilities/utility.php#cl-42|BitBucket]]
 
===Referenced by===
 
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JUtility::sendMail source code''' on [[jplatform:utilities/utility.php#cl-35|BitBucket]]
 +
* {{JVer|11.1}} Class [[JUtility/11.1|JUtility]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Utilities/11.1|Utilities]]
 +
* [[JUtility::sendMail|Other versions of JUtility::sendMail]]
 +
{{SeeAlso:JUtility::sendMail}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JUtility::sendMail|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JUtility::sendMail|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JUtility/11.1|JUtility]]
+
===User contributed notes===
* [[JUtility::sendMail|Other versions of this method]]
 
{{SeeAlso:JUtility::sendMail}}
 
===Examples===
 
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 98: Line 106:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JUtility]][[Category:JUtility::sendMail]]</noinclude>
 
<noinclude>[[Category:JUtility]][[Category:JUtility::sendMail]]</noinclude>

Revision as of 21:56, 27 April 2011

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]

Description[edit]

Mail function (uses phpMailer).

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

public static function sendMail (
        $from
        $fromname
        $recipient
        $subject
        $body
        $mode=0
        $cc=null
        $bcc=null
        $attachment=null
        $replyto=null
        $replytoname=null
)
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 />