I want send bulk emails on one action but user shouldn't wait upto end of email sending process. after clicking the button user should get success message and process should continue in back-end, but i don't want to use any third party service. please tell me any possible way. Thanks in advance.
Asked
Active
Viewed 2,385 times
1 Answers
0
You've asked in a very general way, so this is a very generalised answer. There are several ways you can do this. The easiest is to an existing mailing app, the most obvious of which is PHPList, though there is also PHPMailer-ML.
The key concept is that you need to separate the sending from the command to send, and that the actual sending is not done from a web page script. You can do this many ways, for example insert a value saying 'send this email to these people' in a database, then have a separate process (either a daemon or cron job) poll the database for mailing jobs and send them asynchronously. You can do something similar with a queue like beanstalkd.

Synchro
- 35,538
- 15
- 81
- 104