Send mail without blocking 'execution'

前端 未结 4 673
刺人心
刺人心 2021-01-15 06:36

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 Goog

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-15 07:03

    Since PHP does not support multi-threaded programming, the only thing that comes to mind is to execute different program that handles the mail send. If you have control over your host, you can use exec() in a non-blocking fashion. Check this thread - http://www.phpbuilder.com/board/showthread.php?t=10351142 for how to do it

提交回复
热议问题