Last active
August 29, 2015 14:09
-
-
Save bede/a2ddf3847561c2d4243c to your computer and use it in GitHub Desktop.
email_alert.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Send basic email alerts from cURL etc. | |
// Usage: curl domain.com/email_alert.php?script-ran-successfully | |
mail('[email protected]', 'Alert: ' . $_SERVER['QUERY_STRING'], 'Request origin: ' . $_SERVER['SERVER_ADDR']); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment