JMail::sendMail
Function to send an email
Signature
public function sendMail(string
$from,
[string
$fromName = false,
[mixed
$recipient = false,
[string
$subject = false,
[string
$body = false,
[boolean
$mode = false,
[mixed
$cc = null,
[mixed
$bcc = null,
[mixed
$attachment = null,
[mixed
$replyTo = null,
[mixed
$replyToName = null]]]]]]]]]] )
Parameters
-
$from
- From email address
-
$fromName
- From name
-
$recipient
- Recipient email address(es)
-
$subject
- email subject
-
$body
- Message body
-
$mode
- false = plain text, true = HTML
-
$cc
- CC email address(es)
-
$bcc
- BCC email address(es)
-
$attachment
- Attachment file name(s)
-
$replyTo
- Reply to email address(es)
-
$replyToName
- Reply to name(s)
Returns
- boolean
- True on success