Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- php -q /home/username/public_html/x_y_z.php.
- <?php
- ob_start();
- /* >>> your existing php code goes there */
- $output = ob_get_contents();
- ob_end_clean();
- /* the text to be mailed is now in variable $output */
- mail("reciptient@host.com", "Mail from cron job" , $output, "From: Webmaster <webmaster@example.com>rnReply-To: webmaster@example.com");
- ?>
- sudo vi /etc/mailname
Add Comment
Please, Sign In to add comment