News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

RooJs.com:
How to spam in PHP..
April 11, 2011 @ 10:20:41

On RooJs.com there's a recent post from Alan Knowles looking at how to spam in PHP. No, nothing malicious - it's more about scalability in sending emails from PHP applications.

The reason this has been relivant in the last two weeks is two fold, first off, my slow and sometimes painfull Pman.Core and Pman.Base). It seemed like an ideal time to write some generic code that can solve both issues.

He mentions the usual method of generating numerous emails and sending them to a remote SMTP server, but points out that there's a better way. You can take advantage of queuing and batch sending techniques and, the way he decided to do it for mtrack, using queue tables and a backend runner (a cron job) that uses proc_open to send out multiple emails at once. You can see the code for it here.

0 comments voice your opinion now!
spam email send smtp process procopen mtrack


blog comments powered by Disqus

Similar Posts

Fabien Potencier's Blog: Twitter and Emails are good; Postcards are better

Ant Phillips' Blog: Singletons, BIRT, Theads and PHP

David Coallier's Blog: Text_CAPTCHA_Numeral is out!

Greg Freeman: Processing data with PHP using STDIN and Piping

Stefan Mischook's Blog: New PHP article in Web Designer Magazine


Community Events

Don't see your event here?
Let us know!


conference community introduction application laravel configure framework performance release api part2 symfony2 series php7 interview example podcast opinion voicesoftheelephpant language

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework