API17:JUtility::sendMail
From Joomla! Documentation
JUtility::sendMail
Description
Mail function (uses phpMailer).
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) |
See also
JUtility::sendMail source code on BitBucket
Class JUtility
Subpackage Utilities- Other versions of JUtility::sendMail
User contributed notes
Code Examples