Control Email using IFTTT

Thanks @giorgiospugnesi , I have been testing the email part first and although I got it to send two emails to start with, it appears now to have stopped working altogether. I noticed from your example that you did not state <?php then close it with the ?> so I tried that and it seemed to have worked. However since then I tried the mail command with and without using variables to hold the messages, subject etc and it has stopped sending emails and so I checked the spam engine with my web space and the spam folder of the receiving email address and I do not see any issues.

Any thoughts to why this would have stopped?

Thanks

TimCS