/** * Creates a new instance of the default mail sender. */ private static function createDefault() { switch (MAIL_SEND_METHOD) { case 'php': require_once WCF_DIR . 'lib/data/mail/PHPMailSender.class.php'; self::$defaultMailSender = new PHPMailSender(); break; case 'smtp': require_once WCF_DIR . 'lib/data/mail/SMTPMailSender.class.php'; self::$defaultMailSender = new SMTPMailSender(); break; case 'debug': require_once WCF_DIR . 'lib/data/mail/DebugMailSender.class.php'; self::$defaultMailSender = new DebugMailSender(); break; } }