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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:38:46+00:00 2026-06-01T04:38:46+00:00

We currently have a working php mail script, this works fine and as we

  • 0

We currently have a working php mail script, this works fine and as we expected. But today we encountered an unforeseen issue, that servers only offer about 15 emails per minute via PHP to avoid having their IP address Blacklisted as mass mailer.

We are not trying to bypass this. We want a way to assure that this limit is not exceeded. So my question is, what methods can I use to set some type of delay based on how many emails have been sent in the last 60 seconds.

Please note that db_query() is a correct but specialised function for executing SQL queries

Here is our mail script (simplified):

$user_verification_key = md5(rand(1000, 100000000000));
db_query("insert into user_t values('" . $user . "', '" . $userinfo['first_name'] . "', '" . $fb_userinfo['last_name'] . "', '" . $userinfo['username'] . "', '" . $_POST['user_country'] .  "', '" . $_POST['regions'] . "', '" . $_POST['paypal'] . "', '" .     $user_verification_key . "', 0)");
$msg = "Thankyou for signing up:\n\n
        Click the link to verify your account: http://website.com/verify.php?user=" . $fb_userinfo['id'] . "&verify=" . $user_verification_key . "
         ";

mail($_POST['paypal'], 'Account verfication', $msg, 'From: ' . 'no_reply@bartermate.com.au');
    header("location: index.php?page=home&msg=Congratulations, your account has been setup please verify your email address");        
  • 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-01T04:38:47+00:00Added an answer on June 1, 2026 at 4:38 am

    One simple way would be to store all unprocessed e-mails in a MySQL database and use a cronjob to progressively go through them at intervals (say every 10-15 minutes). This way you don’t breach your hosting terms.

    If you’re using cPanel, this is incredibly easy because you can setup a cronjob and link it to your PHP script. All your script would have to do is connect to your DB, access all unprocessed e-mails (i.e. those with a status of 0) and send them. As you loop through them, change their status to 1.

    If you’re not too familiar with them, find out more about cronjobs here.

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

Sidebar

Related Questions

I currently have this working but it requires me to have a static method
I am working on a Symfony project and I currently have this: <?php echo
I'm currently working on a PHP/MySQL script that does the following, in this order:
I'm currently working on an OO PHP application. I have a class called validation
I am working on an IMAP client using java mail. We currently have a
I am currently working on a building community website in PHP. This contains forms
I currently have a script written in PHP where I connect to a database
I'm currently working on an MVC based PHP project. My script basically will be
I am working on a PHP based mailing list using PHPmailer. Currently I have
I currently have NSXMLParser working in my viewcontroller. I would like to create a

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.