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 6932169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:40:18+00:00 2026-05-27T11:40:18+00:00

I am currently creating a quote system which works like this: User submits data

  • 0

I am currently creating a quote system which works like this:

User submits data through form –> data sent to db –> pdf generated –> email sent

I am using the htmlmimemail5 library to do this and the email generated is sent to a mail exchange on a separate server on the local network.

Sadly the negative side of this is that the php script takes around a minute to fully execute as the script waits for confirmation from the MX that the email has been sent or has failed.

So what I was hoping would be possible is to have a separate PHP application that handles all the email processing and means that the user does not have to wait a minute and can instead jump to the next page where they can view information etc.

This application would happily work away on an email queue that has been built up from user process requests and if the queue is empty would possibly shut down?

I’m guessing it would need to be some sort of email queue (like a print queue).

However, because I am a junior PHP dev and all the other devs are too busy to babysit, I am completely lost and do not even know where to begin from or if this is even the right strategy?

More information:

  • Server is a BSD jail
  • Apache 2.2 /PHP5

All internal and external emails are routed through POSTINI, which adds a delay as well.

Any ideas or suggestions welcome! 🙂

  • 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-27T11:40:19+00:00Added an answer on May 27, 2026 at 11:40 am

    Yep, this is pretty straightforwards to implement. Rather than immediately sending, save the e-mail data to a database. Have a script (running every minute via cron, or better yet a daemonized PHP script) that takes the queued e-mails and sends them out.

    Be sure to have flags in your database to indicate progress, i.e. a column for “sending” and one for “sent”, so your script knows not to try to repeatedly send one that’s already in the process of being sent.

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

Sidebar

Related Questions

I'm currently creating a user interface using WPF and would like to display a
I am currently creating a site(php,css,html,ajax,MySql) which will have heavy user usage of space(regarding
I'm currently creating a Login form and have this code: string connectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
I'm currently creating an explicit reference to this in the outer class so that
We are currently creating an InfoPath 2007 form is deployed in SharePoint 2007. In
I am currently creating a type of classifieds website, and when the user enters
I'm currently working on a WPF (with C# behind the scenes) system which requires
I'm currently creating a MSPaint-like WPF-application and struggling with the implementation of a snappable
Im currently creating a zend form status dropdown to let users to update their
I'm currently creating an application to edit parallel lists of events which happen on

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.