[prev in list] [next in list] [prev in thread] [next in thread]
List: interchange-users
Subject: Re: [ic] /etc/report in HTML
From: Salvador Caballe <scaballe () gmail ! com>
Date: 2013-09-30 12:48:23
Message-ID: 52497317.4020801 () gmail ! com
[Download RAW message or body]
El 30/09/13 13:37, Mike Heins ha escrit:
> Quoting Stefan Hornburg (Racke) (racke@linuxia.de):
>> On 09/30/2013 09:19 AM, Salvador Caballe wrote:
>>>
>>>
>>>
>>> El 30/09/13 03:58, Peter ha escrit:
>>>> On 09/30/2013 02:54 AM, Salvador Caballe wrote:
>>>>> Does anyone has a /etc/report file example to generate a email in html
>>>>> format, the idea is to include in it product and/or barcode images
>>>>
>>>> Did you look at etc/receipt.html?
>>>>
>>>>
>>>
>>> I'm talking about /etc/report
>>> how to do a multi-part message instead actual plain text.
>>>
>>
>> Actually I tried to do that, but the etc/report handling is really hardwired
>> in Interchange.
>>
>> My approach was to add another route which sends a MIME email through [email]
>> and let the etc/report email going to blackhole.
>
> This is the best way. It's as easy as changing the master:
>
> Route default cascade "log main copy_user copy_us"
>
> Then adding a report:
>
> Route copy_user <<EOF
> empty 1
> error_ok 1
> encrypt 0
> increment 0
> report etc/html_report
> supplant 0
> track logs/log
> EOF
>
> Put the email code -- similar to etc/mail_receipt -- in the
> etc/html_report file, and you are done. You could engage a competent
> Interchange consultant to help you craft the email code, if you are
> uncomfortable doing it.
>
Thanks Paul and Mike,
this is exactly what I was looking for.
Salvador
_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic