Actions

API16

JMail/useSendmail

From Joomla! Documentation

< API16:JMail
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Contents

Description

Use sendmail for sending the e-mail

[Edit Descripton]

Description:JMail/useSendmail

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;
        }
}

[Edit See Also] SeeAlso:JMail/useSendmail

Examples

<CodeExamplesForm />