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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:32:16+00:00 2026-06-15T19:32:16+00:00

I have a script to process sending emails. There could be thousands of emails

  • 0

I have a script to process sending emails. There could be thousands of emails to send. I want to show the user a page that says something along the lines of “Your messages are being sent.”, but I don’t want that page to do the actual sending of the messages, because I don’t want the user to see a blank page until the script finishes and I also don’t want the user to have to wait for the script to finish.

I would like to pass a list of IDs to another PHP page (lets call it run.php) and have it execute without having the user actually visit it. So I would pass the IDs to the page, which starts the execution, but then finishes loading the current page which shows the message “Your messages are being sent.”.

<?php
/* SESSION DATA HERE */
executeMailSend($ids);
?>
<html>
<head>
....
</head>
<body>
Your messages are being sent.
</body>
</html>

I think I could something like this using ajax, but I would prefer to not make this rely on client side coding.

Also, if at all possible, I need to have the script running in the background keep session data from the session that starts it, and I would prefer that I don’t have to pass this data along as separate variables.

Also, I don’t want to use anything like exec() or system().

Any ideas?

  • 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-06-15T19:32:17+00:00Added an answer on June 15, 2026 at 7:32 pm

    Utilize the power of AJAX for more information checkout this tutorial by w3schools.com

    http://www.w3schools.com/ajax/default.asp

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

Sidebar

Related Questions

I have a page that sends emails to customers. It has a send all
I have a script that uses Parallel::ForkManager . However, the wait_all_children() process takes incredibly
I have a batch script that calls a process and currently it waits for
I have a custom script step in my build process that zips the executable.
I have a shell script that launches a Maven exec:java process - exec mvn
I have a php script which is responsible for sending emails based on a
Possible Duplicate: Show progress for PHP long script I have a PHP script that
I have an array of emails and want to send an email for each
I have a PHP script where I create a new process using proc_open().It executes
I have a simple script, which tries to kill an already running process. I

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.