Re: [exim] html mails from cronjob

Top Page

Reply to this message
Author: Mike Cardwell
Date:  
To: exim-users
Subject: Re: [exim] html mails from cronjob
On 07/01/2011 09:31, Mike Cardwell wrote:

> True. This is just the way cron works.


Just had a thought about how you can do this. Pipe the output directly
to Exim from your cron job:

s m h d m y    yourcommand | exim -i recipient.address


But only if "yourcommand" outputs *all* of the relevant headers, eg
From, To, Subject etc, as well as the Content-type obviously.

--
Mike Cardwell https://secure.grepular.com/ https://twitter.com/mickeyc
Professional http://cardwellit.com/ http://linkedin.com/in/mikecardwell
PGP.mit.edu 0018461F/35BC AF1D 3AA2 1F84 3DC3 B0CF 70A5 F512 0018 461F