Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: cc_skavenger on November 12, 2004, 04:42:29 PM

Title: e-mail from cron job
Post by: cc_skavenger on November 12, 2004, 04:42:29 PM
I am trying to setup a cron job that will send an e-mail from a cron job to a remote user e-mail.  I am trying to use the mail() command, but have not been able to get it to work.

Any suggestions??

TIA

Marco
Title: e-mail from cron job
Post by: Curly on November 12, 2004, 07:52:12 PM
I use something like

I compose a file with the contents of the mail

cat file | mail me@myserver.org -s "Subject of mail"
Title: e-mail from cron job
Post by: cc_skavenger on November 12, 2004, 11:40:26 PM
thanks, been beating myself up for about a week on this.