Email - Trigger flows based on incoming emails

You’ll need to run a local webserver

For Windows, this is a way to run php:
https://www.geeksforgeeks.org/how-to-install-php-in-windows-10/

XAMPP server is a complete server package.
This should install quite straightforward:
https://www.geeksforgeeks.org/how-to-install-xampp-on-windows/

More:
https://www.geeksforgeeks.org/how-to-run-php-programs/

1 Like

The v1.0.2 app still works flawless on Homey Pro 2019,
I use Strato imap servers.

Are you using Pro 2023?

Thank you for your help here, Peter!
Is this usable for your case, Kam?

If not, please let me know whag exactly triggers the mail to be send.

1 Like

Hello everyone, does the app work for homey 2023 for anyone? Has anyone contacted the developer or received an answer?

Hey Stefan,

nope, the app does not work on Homey 2023.
Unfortunately Adam Noren has not responded to anyone, including me, trying to reach him - this is why wrote this: Email - Trigger flows based on incoming emails - #65 by lukenukemmp3

I use webhooks for nearly all purposes now, called by a PHP-script. Is this helpful for your usecase? Please describe your usecase, if not. Maybe we can figure out, how to make this work!

Hi Adam @norenz Sorry to tag you like this.
Can you please say anything about errors with the Email app on the Pro 2023?
Anything we can do to help out?

Thank you.

Thanks for your continued support in my quest. I don’t own a local webserver. Can I run the PHPMailer in Gmail as an alternative?

As for what exactly triggers the e-mail, here’s the following rule I have in Outlook.com — “if the from address is “"info@*******.com” AND subject line includes “New Request”, then forward to my Gmail.

Do I understand correctly that there is a form on a website that sends the mail to you?
If so, can you additionally (or instead) let the form execute the PHP-script?

There’s no form on my end. I have no idea what my job uses to e-mail me stating there’s a new request available.

Okay, since you receive the mails in GMail - if I am on the right track here - you could use Google Apps Script for sending the webhook in dependency of the subject of the incoming mail.

But all of this needs a little bit of coding.
I will test something with my GMail Acc but this will need a few days.

Unfortunately GMail Apps Script does not support a trigger for incoming mail.
That given it would only be possible to call this script on a schedule.

So how about the IFTTT-Trigger for incoming mails? You can try it yourself and measure the latency.

Would this be available if I use my Outlook instead of Gmail?

Another post, another unfortunately:
Unfortunately I am no member of the microsoft support. The only thing I can do here, is use Google. Which leads me to this:

I am sorry, that I can’t help you any further.
What you try to achieve is to send a webhook with a certain tag, which can be used to trigger a flow in Homey.

Understood :smile:
What abut trying the PHPMailer in Gmail? Would that be a viable option?