Unsupported scripts and control panel web app for a hosting company
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tacmail.php 914B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/php -q
  2. <?PHP
  3. chdir('/home/utd/control/');
  4. require_once('lib/database.php');
  5. function tacmail() {
  6. $sql = 'SELECT user_email FROM users';
  7. $res = mysql_query($sql);
  8. while ($usr = mysql_fetch_array($res)) {
  9. $to = $usr['user_email'];
  10. $subject = 'UTD-Hosting terms and conditions update';
  11. $body = 'This is an automated message. The terms and conditions governing';
  12. $body .= ' your UTD-Hosting account have been updated. Please review these';
  13. $body .= ' changes by logging into the customer control panel, located at';
  14. $body .= ' https://secure.utd-hosting.com/control/. If you do not agree to';
  15. $body .= ' these new terms and conditions, please contact support@utd-hosting.com';
  16. $body .= ' within two weeks.';
  17. $body .= "\n\n-- UTD-Hosting support";
  18. mail($to, $subject, $body, 'From: support@utd-hosting.com (UTD-Hosting support)');
  19. }
  20. }
  21. tacmail();
  22. ?>