/** * Stop adding mail to the mail queue and insert the mailqueue data for sending later */ function vbmail_end() { if (!class_exists('vB_Mail', false)) { require_once(DIR . '/includes/class_mail.php'); } $mail =& vB_QueueMail::fetch_instance(); $mail->set_bulk(false); }
/** * Factory method for mail. * * @param vB_Registry vBulletin registry object * @param bool Whether mail sending can be deferred * * @return vB_Mail */ public static function fetchLibrary($registry, $deferred = false) { if ($deferred) { return vB_QueueMail::fetch_instance(); } if ($registry->options['use_smtp']) { return new vB_SmtpMail($registry); } return new vB_Mail($registry); }