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

  • Home
  • SEARCH
  • 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 8400625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:36:17+00:00 2026-06-09T21:36:17+00:00

Say I have a database with 5 email addresses, and i have a contact

  • 0

Say I have a database with 5 email addresses, and i have a contact form.

Each time a user submits the contact form, the form will need to submit the details to one of my stored email addresses. This i can handle but i start getting confused as to how i will get it to *share submissions with the emails.

IE. I need to share the load between the email addresses. each time the contact form is submitted it will need to send to the next email address in my table. Then start from the beginning when it reaches the last email.

Sorry if this is a serious beginner question, i just cant seem to think of the best way to do this.

  • 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-09T21:36:18+00:00Added an answer on June 9, 2026 at 9:36 pm

    You could think of an extra column in the email table called sendcount with default 0. In the script where you want to find out which address to send an email to, do the following:

    //Get email with least counts
    $query="SELECT * FROM emails ORDER BY sendcount ASC LIMIT 1";
    $result=mysql_query($query);
    $object=mysql_fetch_object($result); //This will store the required email address in $object->email
    
    //Send email...
    
    //Increase counter by one
    $query="UPDATE emails SET sendcount=sendcount+1 WHERE id=".$object->id;
    mysql_query($query);
    

    This way you will always send the email to the address with the smallest count!

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

Sidebar

Related Questions

I have a type I want to save to the database, say, email addresses,
Say I have a User database table with the regular username, password, email fields.
I have the following form for my users to change their email addresses. <form
Let's say I have a database table like this: users ------ id email referrerID
I'm trying to foresee how big my database will be. Let's say I have
Say I have a database table like the following: FileID | FileName | FileSize
Say I have a database containing Books and Users and these users have certain
Say I have a database called Poll and have these two table structures. poll
Lets say we have a database table with two columns, entry_time and value. entry_time
Lets say I have a database of widgets. I am showing a list of

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.