PHP Classes

want to send mails even after closing the site

Recommend this page to a friend!

      MIME E-mail message sending  >  MIME E-mail message sending package blog  >  How Can PHP Send Emai...  >  All threads  >  want to send mails even after...  >  (Un) Subscribe thread alerts  
Subject:want to send mails even after...
Summary:i want to send the bulk mails even after closing the site
Messages:6
Author:Uday
Date:2008-03-25 06:48:55
Update:2008-03-27 11:58:22
 

  1. want to send mails even after...   Reply   Report abuse  
Picture of Uday Uday - 2008-03-25 06:48:55
hi everybody,
this is uday new 2 php i'm developing a site which will show how many candidates are there according to the client requirement.he can send the mails to the candidates after he pays the money from paypal site i have come till this after paying the money it will return back from paypal to the site there will be the send mail button(sending bulk mail)here if say some 10,000 mails to be sent but the client cant wait for that long time so if he closes the site even though sending mail should not stop untill all 10,000 mails is sent. Can anybody help me out wid this.
Thx for ur solutions ;)

Uday Kumar.K

  2. Re: want to send mails even after...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-03-25 07:30:26 - In reply to message 1 from Uday
I think you should not send so many messages from a Web page script.

It is better to store some information on a database about the campaign that was order.

Then have a PHP script started by a task scheduler program like cron to poll the database and start sending the messages if there is a pending campaign in the database.

When you are done sending all the campaign messages, just delete the scheduled campaign from the database.

  3. Re: want to send mails even after...   Reply   Report abuse  
Picture of Uday Uday - 2008-03-25 08:27:58 - In reply to message 2 from Manuel Lemos
thx for ur reply,now wat is my actual problem is while sending mail it takes some time depending on the net speed if client closes the window & log's out from the site it should not stop sending the mail.wat could i do here to this problem

  4. want to send mails even after...   Reply   Report abuse  
Picture of Uday Uday - 2008-03-25 11:04:20 - In reply to message 2 from Manuel Lemos
can u give me some brief idea abt campaign & scheduling or u can give me some example link...

  5. Re: want to send mails even after...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-03-25 19:48:17 - In reply to message 4 from Uday
I just told you all you need to do. If you do not know how to do it, may be you need to hire a consultant to develop what you need.

  6. Re: want to send mails even after...   Reply   Report abuse  
Picture of Uday Uday - 2008-03-27 11:58:22 - In reply to message 5 from Manuel Lemos
thx for ur valuable information........