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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T19:09:12+00:00 2026-05-14T19:09:12+00:00

For a client i’m developing 4 different email agents for his web portal. I

  • 0

For a client i’m developing 4 different email agents for his web portal.

I need to send a lot of emails to clients (couple of thousands in the future) which are stored in a database. Sending is fine, but I would like to work out a PHP script which sends emails, but also stores the previous email domain and if they equal than postpone that email for sending later to prevent spam filters.

I’m going to load that script with cron and I already set_time_limit(0);
Code sample available at http://mikaelz.host.sk/php/job_robot.txt

  • 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-14T19:09:12+00:00Added an answer on May 14, 2026 at 7:09 pm

    Your e-mails are already in a database.

    One possible approach (in pseudo-code):

    • (a) create a list of objects of PKs (primary keys) with their corresponding e-mail domains;
      this could be a list of pairs, of the form:
      PK, domain.
    • (b) create a second, empty list;
    • (c) order the list from (a) by domain;
    • (d) send an e-mail the the first item via PK from list (a);
    • (e) for each subsequent item in list (a), if the domain is the same as
      its predecessor, MOVE it from list (a) to list (b),
      otherwise send an e-mail via PK from list (a);
    • (f) continue until list (a) is exhausted;
    • (g) if there are are items in list (b), MOVE them to list (a)
      such that list (b) is empty and list (a) contains the
      unsent e-mails.
    • (h) repeat the above process until list (a) is exhausted
      and list (b) simultaneously has zero items.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

my client and I need to get him receiving emails this week. The domain
Client table contains first name, last name, email, and department. I need to compare
Client wants a button on the mobile web app that launches a QR code
A client is running a web app through Tomcat and is getting an unusual
A client has asked for additional security for a web app which would allow
Each client on the site has his own composition of HTML elements. Some may
Client has different versions of the same code based, basically they copy a template
My client has a multi-page PDF file. They need it split by page. Does
A client of mine uses Oracle 9i's utl_smtp to send mails out notifications to
My client gets from another client a stream but my client need to read

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.