API16

JFactory/getMailer

From Joomla! Documentation

< API16:JFactory
Revision as of 17:47, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Get a mailer object <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span>...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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]

Get a mailer object

[Edit Descripton]

Template:Description:JFactory/getMailer

Syntax[edit]

static getMailer()


Returns[edit]

object

Defined in[edit]

libraries/joomla/factory.php

Importing[edit]

jimport( 'joomla.factory' );

Source Body[edit]

public static function getMailer()
{
        if (! is_object(JFactory::$mailer)) {
                JFactory::$mailer = JFactory::_createMailer();
        }
        $copy   = clone JFactory::$mailer;
        return $copy;
}

[Edit See Also] Template:SeeAlso:JFactory/getMailer

Examples[edit]

<CodeExamplesForm />