Subversion Repositories Transart

Compare Revisions

Ignore whitespace Rev 20 → Rev 21

/main/ar_cron.php
60,18 → 60,18
<?php
echo $totalRows_fakturen;
echo $datumaktuell;
?>
<?php do { ?>
<?php
 
do {
 
$versand_split = explode ("-","$row_fakturen[fakturen_versand_datum]");
$versand_unix = mktime(0,0,0,$versand_split[1],$versand_split[2],$versand_split[0]);
echo $versand_unix;
echo $datumaktuell_unix;
echo '<br>faktura file: '.$row_fakturen['fakturen_rechnungsnummer'].'.pdf<br>';
if ($versand_unix <= $datumaktuell_unix){
?>
<?php
 
$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->AddAttachment('/var/www/html/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 = kSmtpServer; // SMTP server
$mail->SMTPSecure = "tls";