Re: [exim] html mails from cronjob

Top Page

Reply to this message
Author: Dominic Benson
Date:  
To: exim-users
Subject: Re: [exim] html mails from cronjob
On 6 Jan 2011, at 13:46, escoand wrote:

> Hello.
>
> 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?
>
> Thanks, Andreas



You need a MIME structure for the message to get it to be treated as HTML - see http://en.wikipedia.org/wiki/MIME for a reasonable start to what you need to do.

This isn't anything to do with Exim!

Dominic