#$mail->WordWrap = 50; // set word wrap
#$mail->AddAttachment("/var/tmp/file.tar.gz"); // attachment
#$mail->AddAttachment("/tmp/image.jpg", "new.jpg");
$mail->IsHTML(false); // send as HTML
$mail->Subject = $subject;
$mail->Body = $this->output;
#$mail->AltBody = "This is the text-only body";
$mail->Send();
if\(\!empty\($this->return\_path\)\)\{\#$result=mail\($to,$subject,$this->output,implode\(CRLF,$headers\),'-f'.$this->return\_path\);\}else\{\#$result=mail\($to,$subject,$this->output,implode\(CRLF,$headers\)\);\#echo$to."<br>".$subject."<br>".$this->output."<br>-----<br>".implode\(CRLF,$headers\);\#foreach\($headersas$hd\)\{echo$hd."<br>";\}\}// Reset the subject in case mail is resentif\($subject\!==''\)\{
Logged In: YES
user_id=1840212
Originator: NO
I once tried phpmailer and it worked.
Meanwhile I changed the server and the problem vanished.
You might start editing
htmlMimeMail.php / at beginning + function send
and
includes\classes\Handling.php around line 205.
Maybe this helps...
htmlMimeMail.php
...
*/
require_once(dirname(__FILE__) . '/mimePart.php');
require("class.phpmailer.php");
function getMailAdr($adr) {
return substr($adr, strpos($adr, "<")+1, strpos($adr, ">") - strpos($adr, "<")-1);
}
class htmlMimeMail
{
...
...
// Get flat representation of headers
foreach ($this->headers as $name => $value) {
$headers[] = $name . ': ' . $this->_encodeHeader($value, $this->build_params['head_charset']);
#echo $name . ': ' . $this->_encodeHeader($value, $this->build_params['head_charset']) ."<br>";
$mail = new PHPMailer();
$mail->IsSMTP(); // send via SMTP
$mail->Host = "mailhost.provider.tdl"; // SMTP servers
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "smtp-username"; // SMTP username
$mail->Password = "smtp-password"; // SMTP password
$ad_to = getMailAdr ($to);
$ad_fr = getMailAdr ($this->headers['From']);
#echo "To:".$ad_to ."<br>From:".$ad_fr;
$mail->From = "yourname@provider.tdl";
$mail->FromName = "You Full Name";
$mail->AddAddress($ad_to,"EmpfaengerName");
#$mail->AddAddress("ellen@site.com"); // optional name
$mail->AddReplyTo("yourname@provider.tdl","A.B.");
#$mail->WordWrap = 50; // set word wrap
#$mail->AddAttachment("/var/tmp/file.tar.gz"); // attachment
#$mail->AddAttachment("/tmp/image.jpg", "new.jpg");
$mail->IsHTML(false); // send as HTML
$mail->Subject = $subject;
$mail->Body = $this->output;
#$mail->AltBody = "This is the text-only body";
$mail->Send();
...
includes\classes\Handling.php
...
$tpl->build($email,$order_d,$_SHOP->lang);
// Aktueller Pfad
$pfad = ini_get("include_path");
// Pfad erweitern
$pfad .= ";./phpmailer";
if(!$email->send($tpl->to)){
...