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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:15:13+00:00 2026-05-25T10:15:13+00:00

I want to run a php script ( for example mail.php ) when anyone

  • 0

I want to run a php script (for example mail.php) when anyone send a mail to go@domain.com . And then i will get sender, mail body and other informations, and i will use them on mail.php*.

I read a few articles about getting mails via PHP’s IMAP functions.
I can write a script which checks mail box every second (via cronjobs) and send unread mail’s datas to mail.php .But i don’T want to do it via cronjobs.

Can i trigger mail.php script when someone send an email to go@domain.com, automatically ?

(recently i have a reseller account on a linux server (it’s allowing IMAP). But i can bought a server (dedicated, vps, cloud etc.) if I really need it.)

  • 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-25T10:15:14+00:00Added an answer on May 25, 2026 at 10:15 am

    Assuming it’s a unix-based host, you can have a .forward file in that account’s home directory pipe the email directly to a script. This script would read the email via its STDIN and then go from there.

    Some examples shown here: http://www.activecampaign.com/support/tt/kb/article/help-desk/version-25x-26x/setting-up-supporttrio/setting-up-your-server-to-forward-email-to-the-pipe-script

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

Sidebar

Related Questions

I want to run a php script on my site from a newly created
I want run a php script weekly using a cron job, however the script
I am trying to implement a php script which will run on every call
I want to run a shell script restore as postgres user from php script
I need to develop a script using Wordpress PHP that will run with the
I want to run a web application on php and mysql, using the CakePHP
I want to run a shell command in Terminal, then clear the console, from
I want to run a standalone ruby script in which I need my RoR
I want to run a console application that will output a file. I user
For example, in foo.php: <?php echo 'hello'; ?> And in bar.php, I want to

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.