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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:42:01+00:00 2026-05-13T05:42:01+00:00

Is there a way to configure a server or a script to execute a

  • 0

Is there a way to configure a server or a script to execute a php script when an email is received?

In theory this could be extended to other protocols, such as XMPP or SMS, etc.

What I have in mind is a user could send a message to checking-in@example.org and this would trigger a script which would then do whatever needed to be done, either irrelevant to the message (an automated message that gets sent whenever some other even occurs, like a server having issues) or related to the message (like it could store the subject in a database that other users could view as an RSS feed).

I know that most list-serve software have a means of sending commands (like unsubscribe), but I’m not sure how complicated the process is and if it is feasible to have something like this on a server-script level.

Would this need to occur at the IMAP/SMTP level, or could it be done closer to the script or HTTP server?

Just to give some context, one of the things I’m considering is a message-based clock in server for one of my work sites. Users could IM/email/text that they are at their scheduled location and this could trigger a script that would update a DB, rather then send the managers a direct message they need to log. This would just be one option (a web-based method is already in the works), but we want to make it as platform/protocol independent as possible. But if we can achieve that, we can look at implementing it for many other day-to-day needs.

Another way of asking might be: is there a way to have “discovery” of users from a server-script app or does something need to be doing a constant check to relevant sources to see such changes?

  • 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-13T05:42:02+00:00Added an answer on May 13, 2026 at 5:42 am

    If you control your own machine you can configure it to pipe the e-mail through a filter. Simplest would be to setup a new account and setup a .forward or alias

    The following examples are for Sendmail, but (all?) Unix e-mail programs offer a similar service.

    Setting up an alias (option 1)

    Look in the directory /etc on your server for your alias file. Add the line:

    script: “|/path/toyourscript/pipe.php”

    Using a .forward file (option 2)

    Create a .forward file in your main home directory.

    “|/path/toyourscript/pipe.php”

    or:

    myemail@example.com,”|/path/toyourscript/pipe.php”

    If you are on shared hosting then most hosting providers also provide the possiblity to “pipe” e-mails received to a particular account through a script instead of storing them in a mailbox. Check the CPanel setup.

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

Sidebar

Ask A Question

Stats

  • Questions 502k
  • Answers 502k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Only the first paramter, sfactor, can be GL_DST_COLOR. GL_DST_COLOR is… May 16, 2026 at 2:32 pm
  • Editorial Team
    Editorial Team added an answer The article you've referenced has a link to the JMT… May 16, 2026 at 2:32 pm
  • Editorial Team
    Editorial Team added an answer Image extends SWFLoader which has a content property that will… May 16, 2026 at 2:32 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Is there a way using TFS (Microsoft Team Foundation Server) to configure a folder
In SQL Server Mgt Studio 2005, when I open the Object Explorer to script
I am able to configure our Build Server (Team Build 2008) to build our
I'm attempting to connect to a remote HTTPS SVN server from inside a corporate
I have a batch script I run before our performance tests that does some
As a long-time lurker on SO, I'm popping my question cherry with a tricky
We are trying to implement the Microsoft Sync Framework into our application that persists
I am trying to set up a package template in SSIS, following the Wrox
A problem that I stumbled upon recently, and, even though I solved it, I
I'm trying to figure out how to use a preference (the ones you can

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.