Re: [exim] html mails from cronjob

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Mike Cardwell
Datum:  
To: exim-users
Betreff: Re: [exim] html mails from cronjob
On 06/01/2011 13:46, escoand wrote:

> I tried to forward the output of my cronjobs to my real mailbox.
> It's working pretty well but I have problems with html mails.
>
> My script creates output like:
> Content-type: text/html
>
> <html><body><b>test</b></body></html>
>
> But when I receive the mail it always looks like:
> To: ...@...
> From: ...@...
>
> Content-type: text/html
>
> <html><body><b>test</b></body></html>
>
>
> I tried everything but nothing helped so far.
> Is there a solution for that problem?


That's an issue with cron, not Exim. All MTAs would behave the same. The
only way around this that I can see is to write an application which
sends HTML emails, and have the cronjob pass its STDOUT to that rather
than sending the email it's self.

--
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