/**
* Get a mailer object.
*
* Returns the global {@link Mail} object, only creating it if it doesn't already exist.
*
* @return Mail object
*
* @see Mail
* @since 1.7.0
*/
public static function getMailer()
{
if (!self::$mailer) {
self::$mailer = self::createMailer();
}
$copy = clone self::$mailer;
return $copy;
}