0

I'm sending a plain text mail with php's mail() function using local postfix. Unfortunately the mail shipment takes between 2-4 seconds and this is too long to wait. Is there a way to tell the php() function to not wait for a response of postfix? How can I achieve this?

Gio
  • 41
  • 2
  • if that's to long, then email is not the answer, it can take hours for an email to get delivered –  Aug 25 '13 at 09:45

1 Answers1

2

No, there is no way to do it in your current script. Some things take some time.

If you want to improve that, you have to setup a queue system that quickly accepts the task to send a mail, and then does it asynchronously at a later point in time. Do a search for "Gearman" and alternatives.

Sven
  • 69,403
  • 10
  • 107
  • 109