Hello, on 04/10/2008 01:46 AM Paolo Amarillento said the following: > Hello Manuel, > > I have a question. I have created a simple class for sending mail. Just a simple mail() and some headers: > > $headers = 'MIME-Version: 1.0' . "\r\n"; > $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; > $headers .= "To: $to<$to>" . "\r\n"; > $headers .= "From: $eMail<noreply@xxxxxxxxxx>" . "\r\n"; > > The problem is most often it send mail twice to Inbox folder, or sometimes it stores first on the BULK folder. How can I avoid that- store on BULK Folder? That is because you have the To: header in the headers. The class below that I mentioned assures that the To: header is not duplicated in the message. > Manuel Lemos <mlemos@xxxxxxx> wrote: Hello, > > on 04/09/2008 03:48 AM Balaji R said the following: > > Hi friends, > > > > I am using phpmailer class to send emails from web site. I want to send newsletters to the registered users, so, plz tell any one how to send bulk mail using mysql. > > I don't know about phpmailer because I do not use it. > > Instead I used the MIME message class that has several optimizations to > work more efficiently in bulk mailing campaigns, like several levels of > caching of message parts that do not change. Take a look at the > test_personalized_bulk_mail.php example. > > http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos PHP professionals looking for PHP jobs http://www.phpclasses.org/professionals/ PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/