Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7537819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:57:15+00:00 2026-05-30T06:57:15+00:00

When I use the built in php mail function, the php script hangs for

  • 0

When I use the built in php mail function, the php script hangs for about 20 seconds before continuing. I think it should simply write a file to the postfix queue with the data to be mailed, which should take something like 0.1 seconds instead.

What is the best way to use system / exec to queue an email, alternatively to diagnose and solve the slowness problem?

See also my question regarding this at serverfault for some details and diagnostic data

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T06:57:17+00:00Added an answer on May 30, 2026 at 6:57 am

    This is probably not the the answer you’re looking for, but when I had the same issue, I figured out I could just flush the output back to nginx using fastcgi_finish_request, and keep the process running until the email is sent.

    I see you are using Mac OSX Server, so just switching to nginx might end up causing more trouble than not. In my experience, however, it was well worth the effort.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use PHP's built-in function get_browser() . I followed the instructions
Possible Duplicate: PhpMailer vs. Swiftmailer? I have always used PHP's built in mail() function
What script, class or function you use to send many emails, excluding the in-built
My website is built using php files. I use trade secret algorithms in these
I think I want to use pythons built in calendar module to create an
I have a contact form i want to use Ajax for. My contact.php script
PHP has _get and _set functions built in. Is it better to write my
i want bulid faster webmail i've built small webmail script based on ( php
My company has a website built with PHP. We use the built-in PHP email
I have built a php script which receives values in $_POST and $_FILES I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.