JMail/useSendmail: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
===Syntax=== | ===Syntax=== | ||
| Line 45: | Line 45: | ||
===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=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 01:53, 25 March 2017
Description
Use sendmail for sending the e-mail
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
public function useSendmail($sendmail = null)
{
$this->Sendmail = $sendmail;
if (!empty ($this->Sendmail)) {
$this->IsSendmail();
return true;
} else {
$this->IsMail();
return false;
}
}
Examples
Code Examples