API17:JMail::sendMail
From Joomla! Documentation
JMail::sendMail
Description
Function to send an email.
public 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
JMail::sendMail source code on BitBucket
Class JMail
Subpackage Mail- Other versions of JMail::sendMail
User contributed notes
Code Examples