Pipe to a program - forward to a web page

BattleCat

Registered
Nov 1, 2020
1
0
0
Europe
cPanel Access Level
Root Administrator
Hi this may not even be something that is achievable but I'll give it a shot:

I have an email address that when a specific subject line is put in it, I want the email to be piped to a program - that program happens to be a php script that forwards to a website. I know that sounds weird as who would be looking at the website, right? Well what I am trying to do is fire off a webhook when a specific subject bodied email comes in and I'm stuck on how I can get this to work.

I'm using IFTTT for the webhook URL and I have the php redirect working if I were to view the page normally in the public_html folder, but I'd like to keep it in the /home/user/pipe/script.php

Can this be done? Am I doing this all wrong? Is there a way to get that webhook to trigger?
 

cPSamuelM

Technical Analyst Team Lead
Staff member
Nov 20, 2019
196
38
103
USA
cPanel Access Level
Root Administrator
  • Like
Reactions: cPRex