Removed old phpmailer from all cronjobs
This commit is contained in:
@@ -13,9 +13,6 @@ if($aes == 2 && is_file(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php"))
|
||||
include_once(dirname(__FILE__)."/../www/lib/class.aes".$aes.".php");
|
||||
}else
|
||||
include_once(dirname(__FILE__)."/../www/lib/class.aes.php");
|
||||
include_once(dirname(__FILE__)."/../www/plugins/phpmailer/class.phpmailer.php");
|
||||
include_once(dirname(__FILE__)."/../www/plugins/phpmailer/class.smtp.php");
|
||||
|
||||
|
||||
if(!class_exists('app_t'))
|
||||
{
|
||||
@@ -41,29 +38,6 @@ $app->erp = $erp;
|
||||
|
||||
$firmendatenid = $app->DB->Select("SELECT MAX(id) FROM firmendaten LIMIT 1");
|
||||
|
||||
$benutzername = $app->DB->Select("SELECT benutzername FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$passwort = $app->DB->Select("SELECT passwort FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$host = $app->DB->Select("SELECT host FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$port = $app->DB->Select("SELECT port FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$mailssl = $app->DB->Select("SELECT mailssl FROM firmendaten WHERE id='".$firmendatenid."' LIMIT 1");
|
||||
$noauth = $app->erp->Firmendaten("noauth");
|
||||
|
||||
$app->mail = new PHPMailer($app);
|
||||
$app->mail->CharSet = "UTF-8";
|
||||
//$app->mail->PluginDir="plugins/phpmailer/";
|
||||
$app->mail->IsSMTP();
|
||||
|
||||
if($noauth=="1") $app->mail->SMTPAuth = false;
|
||||
else $app->mail->SMTPAuth = true;
|
||||
|
||||
if($mailssl)
|
||||
$app->mail->SMTPSecure = "ssl"; // sets the prefix to the servier
|
||||
$app->mail->Host = $host;
|
||||
$app->mail->Port = $port; // set the SMTP port for the GMAIL server
|
||||
|
||||
$app->mail->Username = $benutzername;
|
||||
$app->mail->Password = $passwort;
|
||||
|
||||
$events = $app->DB->SelectArr("SELECT * FROM event_api");
|
||||
|
||||
for($ij=0;$ij<count($events);$ij++)
|
||||
|
||||
Reference in New Issue
Block a user