Subversion Repositories Transart

Compare Revisions

Ignore whitespace Rev 10 → Rev 11

/main/ar_cron.php
1,8 → 1,6
<?php //require_once('../Connections/Transart.php'); ?>
<?php require_once('/var/www/htdocs/Transart/Connections/Transart.php'); ?>
<?php //require_once('/Applications/XAMPP/htdocs/Transart/Connections/Transart.php'); ?>
<?php
//require("/Applications/XAMPP/htdocs/Transart/phpmailer/class.phpmailer.php");
<?php
require("/var/www/html/Transart/config/config.php");
require_once('/var/www/htdocs/Transart/Connections/Transart.php'); ?>
require("/var/www/htdocs/Transart/phpmailer/class.phpmailer.php");
$datumaktuell = date ("Y-m-d");
$datumaktuell_split = explode ("-","$datumaktuell");
75,21 → 73,18
$mail = new PHPMailer();
$mail->AddAttachment('/var/www/htdocs/Transart/main/ar/'.$row_fakturen['fakturen_rechnungsnummer'].'.pdf', $name = 'Invoice.pdf', $encoding = 'base64', $type = 'application/pdf');
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "127.0.0.1"; // SMTP server
$mail->Port = 25;
//$mail->SMTPSecure = "ssl";
$mail->SMTPAuth = false;
//$mail->Username = "ATU37134702";
//$mail->Password = "3akmh02n!";
//$mail->From = "ebilling@hsartserviceaustria.com";
$mail->From = "ebilling@hsartserviceaustria.com";
$mail->Host = kSmtpServer; // SMTP server
$mail->SMTPSecure = "tls";
$mail->SMTPAutoTLS = false;
$mail->SMTPDebug = 0;
$mail->Port = kSmtpPort;
$mail->Username = kSmtpUser;
$mail->Password = kSmtpPassword;
$mail->SMTPAuth = true;
$mail->From = kSendFromAddress;
$mail->FromName = "e-billing hs art service austria gmbh";
//$mail->AddAddress("georg.breidler@datenkreise.at");
//$mail->AddAddress("georg.breidler@gmail.com");
///PROD!!!!
$mail->AddAddress("ebilling@hsartserviceaustria.com");
$mail->AddAddress("$row_fakturen[kunden_email_ar]");
//$mail->AddAddress("georg.breidler@datenkreise.at");
$mail->WordWrap = 50; // set word wrap to 50 characters
$mail->IsHTML(true);
$mail->Subject = "hs art service austria --- Rechnung/Invoice No. $row_fakturen[fakturen_rechnungsnummer] ";