If your web server has that privilege I recommend you launch a separate app (probably a perl or php script) that does the sending. Trouble is getting the feedback, but at least it won't block your script.