API17:JMail::sendMail
From Joomla! Documentation
(Difference between revisions)
(Bulk upload by Doxiki2) |
(Layout updates) |
||
| Line 12: | Line 12: | ||
===Synopsis=== | ===Synopsis=== | ||
<source lang="php"> | <source lang="php"> | ||
| − | public | + | public JMail::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 80: | Line 80: | ||
boolean True on success | boolean True on success | ||
===Defined in=== | ===Defined in=== | ||
| − | libraries/joomla/mail/mail.php | + | libraries/joomla/mail/mail.php (line 368) |
| + | * see source code in [[jplatform:mail/mail.php#cl-368|BitBucket]] | ||
===Referenced by=== | ===Referenced by=== | ||
===See also=== | ===See also=== | ||
Revision as of 20:56, 23 April 2011
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
JMail::sendMail
Description
Function to send an email.
Description:JMail::sendMail [Edit Descripton]
Since
Synopsis
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
boolean True on success
Defined in
libraries/joomla/mail/mail.php (line 368)
- see source code in BitBucket
Referenced by
See also
Examples
<CodeExamplesForm />
