Re: [exim] html mails from cronjob

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Mrten
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] html mails from cronjob
On 7-1-2011 10:37, Mike Cardwell wrote:
> 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.


or use 'mime-construct' or one of the various available tools to create
a valid message yourself.

lots of ways to skin this bike-shed, i'm afraid.

M.