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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:13:10+00:00 2026-05-20T12:13:10+00:00

I know how to send email using PHPmail. But what if I need to

  • 0

I know how to send email using PHPmail. But what if I need to send lots of emails?

This could be a “notification” to site subscribers when a new message is posted. Doing that directly in page handler will seriously affect performance and make browser loading too slow. So I need to have this job done in the “background”.

How can I “schedule” something in PHP, in my case – sending emails? In C++ for example I would create a separate thread but AFAIK there is no such thing as multithreading in PHP.

  • 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-20T12:13:11+00:00Added an answer on May 20, 2026 at 12:13 pm

    Create CRON job that sends out email-queue you’ve saved in a database:

    1. Save an email with all info into a db.

    2. Use a CRON job to periodically (like every half hour or so – depends on your hosting provider and the number of emails you’re sending out) grab emails from the queue and send them out. Then set a sent flag on the email in the database, add sending info you want (e.g. time, errors, header, …).

    Be sure to break up the emails to chunks and send out them with pauses to avoid problems with anti-spam and anti-flood protections of some email servers. Some mailer libraries have plugins for this (like SwiftMailer).

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

Sidebar

Related Questions

Need to know this so that i could send DTMF and that is going
I use C# to send email using System.Net.Mail. But How can I know whether
I am using phpmailer to send email. I need to know how to hide
I read this question to know how to send email in Android using ACTION_SEND:
I know how to send a notification to the status bar, but when it
How do I know if my host is allowing me to send emails using
I tried to send email from c# using SmtpClient.Send() but it always goes to
I'm using System.Net.Mail to send email, like so : MailMessage message = new MailMessage();
Hi. I created a project which can send email using JavaMail. But when I
i wanted to know that using actionscript, is it possible to send email and

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.