mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43:47 +01:00
remove no longer required use egw_mailer, since Mailer is api now
This commit is contained in:
parent
47eca40f25
commit
f68dab4862
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user