XBMC Gmail notifications.
I have this php script currently running on my nas to let me know if I have any new mail. It works with gmail.com, googlemail.com and google app address’. I simply use cron to execute the script every 15 minutes. i.e. (0,15,30,45 17-23 * * * php /var/www/checkgmail.php > /dev/null #Check Gmail) 1: <?php 2: $emailaddress = 'someemailaddress@gmail.com' ; // i.e. bob@gmail.com or bob@bobsdomain.com if you use google apps 3: $password = 'somepassword' ; // email password 4: $xbmcaddress = '192.168.1.1' ; // IP or hostname of your xbmc 5: $xbmcport = '8080' ; // port the xbmc web server is running on. 6: 7: 8: $domain = explode( '@' ,$emailaddress); 9: if ($domain[ '1' ] == 'gmail.com' || $domain[ '1' ] == 'googlemail.com' ) 10: { 11: $use_googleapps = false ; 12: } else { 13: $use_googleapps = true ; 14: } 15: if ($use_googleapps == t...