API15:JMail/useSendmail
From Joomla! Documentation
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