Back to Mail class

Method useSendmail

public bool
useSendmail
(mixed $sendmail = null)
Use sendmail for sending the email
Parameters
  • string $sendmail Path to sendmail [optional]
Returns
  • bool True on success
Since
  • 1.7.0
Class: Mail
Project: Joomla

Method useSendmail - Source code

/**
 * Use sendmail for sending the email
 *
 * @param   string  $sendmail  Path to sendmail [optional]
 *
 * @return  boolean  True on success
 *
 * @since   1.7.0
 */
public function useSendmail($sendmail = null)
{
    $this->Sendmail = $sendmail;
    if (!empty($this->Sendmail)) {
        $this->isSendmail();
        return true;
    } else {
        $this->isMail();
        return false;
    }
}