JMail::getInstance
Returns the global email object, only creating it if it doesn't already exist.
NOTE: If you need an instance to use that does not have the global configuration values, use an id string that is not 'Joomla'.
Signature
public function getInstance([string
$id = 'Joomla'] )
Parameters
-
$id
- The id string for the JMail instance [optional]
Returns
- JMail
- The global JMail object