koen_hendriks

Untitled

Sep 16th, 2013
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. koenbuntu@koenbuntu-B5130M:/var/www/pms$ cat mail.php
  2. <?php
  3. $subject = 'the subject';
  4. $message = 'hello';$headers = 'From: [email protected]' . "\r\n" .
  5. 'Reply-To: [email protected]' . "\r\n" .
  6. 'X-Mailer: PHP/' . phpversion();
  7. echo ' start sending mail at:'.date('H:i:s', time());
  8. echo "\r\n";
  9. mail($to, $subject, $message, $headers);
  10. echo 'mail has been sent at '.date('H:i:s', time());koenbuntu@koenbuntu-B5130M:/var/www/pms$ php5 mail.php
  11. start sending mail at:14:40:42
  12. mail has been sent at 14:41:47
  13. koenbuntu@koenbuntu-B5130M:/var/www/pms$
Advertisement
Add Comment
Please, Sign In to add comment