![Picture of Emilio Alvarado Picture of Emilio Alvarado](/graphics/unknown.gif)
Emilio Alvarado - 2007-08-02 18:34:04
I'm developing a newsletter system from 0, looking the net I found this class so I want to use it.
I have a Ubuntu Server with apache, php, mysql, postfix, etc.
The basic idea is to send the same message to a lot of people. The message contains 2 images a logo and the background, 1 attachment file could be anything (xls,doc,txt,etc.) and the html message body with come text inside.
The from, to, reply, etc. are in session variables or mysql tables
The Attachment file, the subjetc and the body comes from a form in the same php file.
$image1=array(
"FileName"=>$sLogo,
"Content-Type"=>"automatic/name",
"Disposition"=>"inline",
);
//$image1_data_url=$email_message->GetDataURL($image1);
$email_message->CreateFilePart($image1,$image_part);
$image_content_id=$email_message->GetPartContentID($image_part);
This give me this error:
Fatal error: Call to a member function CreateFilePart() on a non-object in /var/www/web3/web/newsletter/saleMailAttach.php