Subversion Repositories Transart

Compare Revisions

Ignore whitespace Rev 16 → Rev 17

/main/test.php
0,0 → 1,72
<?php
require("/var/www/html/Transart/phpmailer5.2/class.smtp.php");
require("/var/www/html/Transart/phpmailer5.2/class.phpmailer.php");
require("/var/www/html/Transart/config/config.php");
$mail = new PHPMailer();
#$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->Port = 25;
#$mail->SMTPSecure = "ssl";
$mail->SMTPSecure = "tls";
#$mail->SMTPSecure = false;
$mail->SMTPAutoTLS = false;
$mail->SMTPDebug = 2;
$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("office@dynamix.at");
#$mail->AddAddress("p.duerhammer@velartis.at");
//$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] ";
$row_fakturen['fakturen_name'] = htmlentities($row_fakturen[fakturen_name]);
$row_fakturen['benutzer_vorname'] = htmlentities($row_fakturen[benutzer_vorname]);
$row_fakturen['benutzer_nachname'] = htmlentities($row_fakturen[benutzer_nachname]);
$mail->Body = "<body bgcolor='#FFF'>
<b>
hs art service austria / Rechnung/Invoice Nr. $row_fakturen[fakturen_rechnungsnummer]
</b>
<BR>
$row_fakturen[kunden_email_ar]
<BR>
<p>
<img src = 'http://www.hsartserviceaustria.com/fileadmin/hsartserviceaustria.com/images/logo.jpg'>
<p>
<fieldset>
<h4>Rechnung/Invoice $row_fakturen[fakturen_rechnungsnummer]:</h4>
<i>$row_fakturen[fakturen_name] <BR></i>
<BR>
Bitte senden Sie keine Antwort an diese Email Adresse. F&uuml;r R&uuml;ckfragen wenden Sie sich bitte an <a href='mailto:$row_fakturen[benutzer_email]'>$row_fakturen[benutzer_vorname] $row_fakturen[benutzer_nachname]</a>.
<BR><BR>
Please don't reply to this email address. For inquiries, please contact <a href='mailto:$row_fakturen[benutzer_email]'>$row_fakturen[benutzer_vorname] $row_fakturen[benutzer_nachname]</a>.
<BR>
<BR>
Mit freundlichen Gr&uuml;&szlig;en / with best regards
<BR>
hs art service austria GmbH
<BR>
Grossmarktstrasse 6
<BR>
A-1230 Wien
<BR>
phone: +43 1 61425 0
<BR>
fax: +43 1 61425 225
<BR>
http://www.hsartserviceaustria.com
";
 
if(!$mail->Send()) {
$mensagemRetorno = 'Error: '. print($mail->ErrorInfo);
echo $mensagemRetorno;
} else {
$mensagemRetorno = 'E-mail sent!';
echo $mensagemRetorno;
}
 
?>