PHP Classes

fix this sctipt

Recommend this page to a friend!

      Email with Attachment  >  All threads  >  fix this sctipt  >  (Un) Subscribe thread alerts  
Subject:fix this sctipt
Summary:changes
Messages:2
Author:TomHung
Date:2006-06-29 17:03:15
Update:2008-01-22 17:37:27
 

  1. fix this sctipt   Reply   Report abuse  
Picture of TomHung TomHung - 2006-06-29 17:03:15
you must change the sendmail.class.php to get this to work with current versions of php.

New send function
function send()
{
$this->makeMimeMail();

$header = $this->emailheader;

// Überprüfen ob Attachments angehängt wurden
if(count($this->attachment)>0)
{
$header .= "Content-Type: multipart/mixed; " . 'boundary="'.$this->emailboundary.'"'."\n\n";
$body .= '--'.$this->emailboundary."\r\n";
$body .= $this->textheader;

if(count($this->attachment) > 0) $body .= implode("",$this->attachment);

$body .= '--'.$this->emailboundary.'--';
}
else
{
$body .= $this->textheader;
}
// Versenden der Mail
mail("$this->empfaenger",$this->betreff,$body,$header);

$this->deletememory();
}

  2. Re: fix this sctipt   Reply   Report abuse  
Picture of Zeeshan Zahid Zeeshan Zahid - 2008-01-22 17:37:27 - In reply to message 1 from TomHung
Thanx Tom for providing us the updated script