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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:02:48+00:00 2026-06-15T18:02:48+00:00

Possible Duplicate: email checking and then act upon script for reacting to a sms

  • 0

Possible Duplicate:
email checking and then act upon script for reacting to a sms message

Suppose that I have two functions called recieve_email() and send_sms().

The problem is that I should send SMS as soon as a new email arrives.

As I have researched, there are these 2 solutions:

  • Checking emails using a cron job
  • Checking emails using a web page that is always open using javascript (like gmail)

I think that the more stable way is the cron job.

I want to know is that aceptable to run a cron job EVERY SINGLE MINUTE? Or does it kill the server and bounce my site away?!

What about running the cron job every two minutes?! 😀

Question 2:

Is there an on_mail_recieved like solution? It will be of course faster and optimum.

  • 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-15T18:02:50+00:00Added an answer on June 15, 2026 at 6:02 pm

    I want to know is that aceptable to run a cron job EVERY SINGLE MINUTE? Or does it kill the server and bounce my site away?!

    Generally, that’s fine. If there’s a chance the job will take longer than a minute you should generally implement a lock file or semaphore to prevent it from running multiple instances at the same time.

    Is there an on_mail_recieved like solution? It will be of course faster and optimum.

    Yes, you can pipe e-mails through to a script. This requires you to run a mail server and can be a little involved technically.

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

Sidebar

Related Questions

Possible Duplicate: Sending mass email using PHP I have a PHP script that sends
Possible Duplicate: regexp to partly hide email? I'm currently writing a script that hides
Possible Duplicate: Validate email address in Javascript? I have an HTML form that uses
Possible Duplicate: Email validation on textField in iPhone sdk I have an app in
Possible Duplicate: base64 encoded images in email signatures I have a image stored in
Possible Duplicate: Check that an email address is valid on iOS What is the
Possible Duplicate: Sending Email in .NET Through Gmail I have so many problems with
Possible Duplicate: Simple PHP Mailer Script i run a small website and we have
Possible Duplicate: schedule an email in php I want to schedule my php script
Possible Duplicate: email zend framwork smtp I have following configuration: smtp.type = Zend_Mail_Transport_Smtp smtp.smtpServer

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.