Send mail without blocking 'execution'
问题 I'm using Zend_Mail in a Zend Framework application to send an e-mail with the contents of a web-based contact form. The mailing itself works fine ( im using a Google Apps account ) but it can take fairly long to process ( ranging from a few seconds to nearly a minute ). My controler action would normally redirect the visitor after sending the mail, so I thought I might be able to redirect the visitor prior to calling $mail->send() and let the script continue in the 'background': So I tried