Login   Register  
PHP Classes
elePHPant
Icontem

Building BulkMail

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      MIME E-mail message sending  >  All threads  >  Building BulkMail  >  (Un) Subscribe thread alerts  
Subject:Building BulkMail
Summary:Need some help to send some bulk mail
Messages:1
Author:Emilio Alvarado
Date:2007-08-02 18:34:04
 

  1. Building BulkMail   Reply   Report abuse  
Picture of Emilio Alvarado
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