remove no longer required use egw_mailer, since Mailer is api now

This commit is contained in:
Ralf Becker 2016-03-29 06:46:42 +00:00
parent 47eca40f25
commit f68dab4862

View File

@ -22,9 +22,6 @@
namespace EGroupware\Api; namespace EGroupware\Api;
// explicitly reference classes still in phpgwapi
use egw_mailer;
/** /**
* Create, verifies or destroys an EGroupware session * Create, verifies or destroys an EGroupware session
* *
@ -769,7 +766,7 @@ class Session
$GLOBALS['egw_info']['server']['login_blocked_mail_time'] < time()-5*60) // max. one mail every 5mins $GLOBALS['egw_info']['server']['login_blocked_mail_time'] < time()-5*60) // max. one mail every 5mins
{ {
try { try {
$mailer = new egw_mailer(); $mailer = new Mailer();
// notify admin(s) via email // notify admin(s) via email
$mailer->setFrom('eGroupWare@'.$GLOBALS['egw_info']['server']['mail_suffix']); $mailer->setFrom('eGroupWare@'.$GLOBALS['egw_info']['server']['mail_suffix']);
$mailer->addHeader('Subject', lang("eGroupWare: login blocked for user '%1', IP %2",$login,$ip)); $mailer->addHeader('Subject', lang("eGroupWare: login blocked for user '%1', IP %2",$login,$ip));