JMail/useSendmail: Difference between revisions
From Joomla! Documentation
m removing red link to edit, no existant pages |
m preparing for archive only |
||
| Line 52: | Line 52: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=useSendmail | category=useSendmail | ||
category=JMail | category=JMail | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 00:57, 25 March 2017
Description
Use sendmail for sending the e-mail
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
useSendmail($sendmail=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $sendmail | null | $sendmail Path to sendmail [optional] |
Returns
boolean True on success
Defined in
libraries/joomla/mail/mail.php
Importing
jimport( 'joomla.mail.mail' );
Source Body
function useSendmail($sendmail = null)
{
$this->Sendmail = $sendmail;
if (!empty ($this->Sendmail)) {
$this->IsSendmail();
return true;
} else {
$this->IsMail();
return false;
}
}
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
Code Examples