API16

JMail/useSendmail

From Joomla! Documentation

< API16:JMail

The "API16" 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.

Description[edit]

Use sendmail for sending the e-mail



Syntax[edit]

useSendmail($sendmail=null)
Parameter Name Default Value Description
$sendmail null $sendmail Path to sendmail [optional]

Returns[edit]

boolean True on success

Defined in[edit]

libraries/joomla/mail/mail.php

Importing[edit]

jimport( 'joomla.mail.mail' );

Source Body[edit]

public function useSendmail($sendmail = null)
{
        $this->Sendmail = $sendmail;

        if (!empty ($this->Sendmail)) {
                $this->IsSendmail();
                return true;
        } else {
                $this->IsMail();
                return false;
        }
}



Examples[edit]

Code Examples[edit]