Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- koenbuntu@koenbuntu-B5130M:/var/www/pms$ cat mail.php
- <?php
- $to = 'mailnaarkoen@gmail.com';
- $subject = 'the subject';
- $message = 'hello';$headers = 'From: webmaster@example.com' . "\r\n" .
- 'Reply-To: webmaster@example.com' . "\r\n" .
- 'X-Mailer: PHP/' . phpversion();
- echo ' start sending mail at:'.date('H:i:s', time());
- echo "\r\n";
- mail($to, $subject, $message, $headers);
- echo 'mail has been sent at '.date('H:i:s', time());koenbuntu@koenbuntu-B5130M:/var/www/pms$ php5 mail.php
- start sending mail at:14:40:42
- mail has been sent at 14:41:47
- koenbuntu@koenbuntu-B5130M:/var/www/pms$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement