Lade Dir PHPMailer hier runter & die enthaltene Datei phpmailer.inc.php & smtp.inc.php in sn das Verzeichnis pkinc/class/

 Dann suche in der pkinc/func/default.php nach:
-----------------------------------------------


 function mailsender($receiver='',$subject,$message,$header='',$addheader='',$type='txt') 
    {
    $line_length_max = 70;
    
    switch($type)
        {
        case 'htm' :
        case 'html' :
            $content_type = 'text/html';
            break;
        default :
            $content_type = 'text/plain';
            break;
        }    
    
    #prepare
    $receiver    = empty($receiver) ? mailalias(pkGetConfig('site_email'),pkGetConfig('site_name')) : $receiver;
    $header        = empty($header) ? 'From: '.mailalias(pkGetConfig('site_email'),pkGetConfig('site_name'))."\n" : $header;

    $header =    "MIME-Version: 1.0"."\n".
                "Content-Type: ".$content_type."; charset=ISO-8859-1"."\n".
                "Content-Transfer-Encoding: 8bit"."\n".
                $header;    
    
    $subject = utf8_decode($subject);
    $subject = mailencode($subject);
    
    $message = utf8_decode($message);

    #lines are allowed with max 70 chars - wrap longer lines
    $array = explode("\n",$message);
    foreach($array as $i=>$str)
        {
        $array[$i] = wordwrap($str,$line_length_max,"\n",false);
        }
    
    $message = implode("\n",$array);
        
    #SMTP 
    #@TODO: needs a redesign
      $smtp_server = pkGetConfig('smtp_server');    
    
    if($smtp_server!="" && ini_get("SMTP")!=$smtp_server)
        {
        @ini_set("SMTP",$smtp_server);
        }    
    

    #add mail signature / footer
    if($type=="html" && pkGetConfig('site_mail_htm'))
        {
        $message.="<br /><br /><br />".stripslashes(pkGetConfig('site_mail_htm'));
        }
    elseif(pkGetConfig('site_mail_txt')!='')
        {        
        $message.="\r\n\r\n\r\n".stripslashes(pkGetConfig('site_mail_txt'));
        }
    
    return mail($receiver,$subject,$message,$header);
    }
 

------------------
 und ERSETZE mit:
------------------
  


 function mailsender($receiver='',$subject,$message,$header='',$addheader='',$type='txt') 
    {
    require_once(pkDIRCLASS.'phpmailer.inc'.pkEXT);
    
    $mail->IsSMTP();
    $mail->Host        = "auth.smtp.kundenserver.de";    // SMTP-Server
    $mail->SMTPAuth    = true;                            // SMTP mit Authentifizierung benutzen
    $mail->Username    = "mxxxxxxxx-x";                // SMTP-Benutzername
    $mail->Password    = "xxxxxx";                        // SMTP-Passwort
    
    $receiver    = empty($receiver) ? pkGetConfig('site_email') : $receiver;

    $mail->From     = pkGetConfig('site_email');
    $mail->FromName = pkGetConfig('site_name');
    $mail->AddAddress($receiver);
    
    //$line_length_max = 70;
    $mail->WordWrap = 70;
    
    if($type=='htm' || 'html')
        {
        $mail->IsHTML(true);
        $mail->AltBody    = strip_tags($message);
        }
        
    $mail->Subject  =  utf8_decode($subject);
    $mail->Body     =  utf8_decode(nl2br($message));
    
    return $mail->Send();
    }
 

------------------------------
 Ausfüllen nicht vergessen:
------------------------------

    $mail->Host        = "auth.smtp.kundenserver.de";    // SMTP-Server
    $mail->SMTPAuth    = true;                            // SMTP mit Authentifizierung benutzen
    $mail->Username    = "mxxxxxxxx-x";                // SMTP-Benutzername
    $mail->Password    = "xxxxxx";                        // SMTP-Passwort
 
