Support Joomla!

references:joomla.framework:jfactory-getmailer

Table of Contents

getMailer

API Package Class phpDocumentor Last reviewed Doc status
Joomla.Framework JFactory JFactory->getMailer

This method returns a reference to the global Mailer object, only creating it if it doesn’t already exist.

Syntax

PHPMailer &getMailer ()

Examples

Example

$mail =& JFactory::getMailer();
echo "The current from name is: ". $mail->FromName;

might produce:

Result

The current from name is: Joomla! 1.5 Test Site
 
references/joomla.framework/jfactory-getmailer.txt (4891 views) · Last modified: 2007/09/22 02:45