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