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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T11:22:37+00:00 2026-06-03T11:22:37+00:00

I have a classifieds website and I am making a mod which will mail

  • 0

I have a classifieds website and I am making a mod which will mail my users when an ad is posted in the category and in the city where they are subscribed. Now, I have a problem. I have set this file to run once a day with cronjob. In a day, in my website are 50 ads posted per day so the user gets 50 emails a day. I want to include all the 50 emails in a single one, so the user will get 1 email, but I do not know how to do that.
Ex: Each email has one link and 50 emails have 50 links. I want that the users receive only a single email which will have all the 50 links in it.
I have tried so many ways, but I could not do it.
Every suggestion is welcomed.

Thanks

  • 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-03T11:22:40+00:00Added an answer on June 3, 2026 at 11:22 am

    simply gather your ad-information in an array, where you set the email as array-key.

    $recipients = array();
    while ($row = mysql_fetch_assoc($result)) {
      $email = $row["email"];
      if (!array_key_exists($email, $recipients)) {
        $recipients[$email] = array();
      }
      $recipients[$email][] = $row;
    }
    

    After this, you have an array and each email has a variable number of $row-entries. You just need to add these entries to your mail template using a foreach-loop.

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

Sidebar

Related Questions

I am making a classifieds website... I have these 6 tables: Every category has
I have a classifieds website which I am now trying to integrate SOLR into,
I have a classifieds website. In every classified, there is a back link which
I have a classifieds website where users may sell/buy just about anything... My issue
I have a classifieds website, which uses PHP and MYSQL. I have several pages
I have a classifieds website, and when users click on an ad, an array
I have a classifieds website, where users can search for items. The search should
I have a classifieds website. The users first have to specify their 'area of
I have this classifieds website and I have now been searching for ways to
I have a classifieds website where users must fill in a form in order

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.