JMail::sendMail
From Joomla! Documentation
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.
JMail::sendMail[edit]
Description[edit]
Function to send an email.
Template:Description:JMail::sendMail [Edit Descripton]
Since[edit]
Synopsis[edit]
public JMail::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[edit]
boolean True on success
Defined in[edit]
libraries/joomla/mail/mail.php (line 368)
- see source code in BitBucket
Referenced by[edit]
See also[edit]
Template:SeeAlso:JMail::sendMail
Examples[edit]
<CodeExamplesForm />