Solanazehe - 2007-07-23

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>";

            \}

            $to = $this-&gt;\_encodeHeader\(implode\(', ', $recipients\), $this-&gt;build\_params\['head\_charset'\]\);

$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();

            if \(\!empty\($this-&gt;return\_path\)\) \{
                \#$result = mail\($to, $subject, $this-&gt;output, implode\(CRLF, $headers\), '-f' . $this-&gt;return\_path\);
            \} else \{
                \#$result = mail\($to, $subject, $this-&gt;output, implode\(CRLF, $headers\)\);
                \#echo $to ."&lt;br&gt;". $subject ."&lt;br&gt;". $this-&gt;output ."&lt;br&gt;-----&lt;br&gt;".implode\(CRLF, $headers\);
                \#foreach \($headers as $hd\) \{ echo $hd ."&lt;br&gt;"; \}
            \}

            // Reset the subject in case mail is resent
            if \($subject \!== ''\) \{

...

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)){
...