Okay, this may sound crazy. I'm trying to figure a way to use my desktop mail client (like Thunderbird -----EDIT: After the responses received, I realise this is totally unreliable; I meant as long as my inbox (no matter how I access the inbox) gets the email ------) to 'trigger' a cronjob script. Is this possible at all?
To elaborate, let me describe why (hypothetically):
I was thinking of using cronjobs with the email as a trigger, but I have no idea how that could work. Do I configure my email? The cronjobs? I'll be using cPanel via windows to do everything, so I guess it's not too customizable...I really wish this could work out somehow.
Is this possible or is it crazy?
use a postfix target pipeline. You can even put in business logic
<name> unix - n n - - pipe
flags=DORX user=<linux_user> argv=<path to script>
it will just pipe it in via stdin so a classic argv / argc application
thecodingmachine.io/triggering-a-php-script-when-…
for php :)
Just don't forget to use php.net/manual/en/book.mailparse.php and check if the body is correct and use a dedicated email (probably with a hash in front of it so the spam attacks are not that probable)
i hope that helps.
you can simply make a change in your webapplication so that when it has to send a success email to you, it also sends the email with the points to the "client" (user who made the payment).
Gijo Varghese
A WordPress speed enthusiast
I'd a similar situation, whenever there is a new email, send an FB message.
MailGun have something called 'routes' which will basically capture emails and send it to a webhook. That webhook will receive "from", "to", "subject", "body" and everything related to that email. You can then parse that email and send email to the corresponding user.