mailer.php 183 B

12345678
  1. <?php
  2. function sendmail($title,$to,$body) {
  3. $file = fopen("/var/www/eba/mailtext","w");
  4. fwrite($file,$body);
  5. fclose($file);
  6. echo shell_exec("python mail.py $to '$title'");
  7. }