Hello Ohad, I have added some CSS to summary.erb file. And added *content "text/html" to "host_mailer.rb". This seems to be working fine. And Outlook seems to be happy. I tried pasting the resulting HTML in W3C website and it passed without any errors.*
**I am attaching the file "summary.erb" file along with this email. I had to rename "summary.text.html.erb" to "summary.erb" for the CSS to work. Which is the expected behaviour. Please see if this can be patched into the main repo. PS: I am no developer, please feel free to point out any mistakes. I am willing to learn. Best regards, -LOhit On Thu, Dec 17, 2009 at 8:37 PM, LOhit <lohi...@gmail.com> wrote: > Yes, of course. Let's see how I fare. :) > > Thanks > LOhit > > > On Thu, Dec 17, 2009 at 6:15 PM, Ohad Levy <ohadl...@gmail.com> wrote: > >> http://theforeman.org/issues/show/135 >> >> hopefully its a starting point >> >> cheers, >> Ohad >> >> >> On Thu, Dec 17, 2009 at 8:03 PM, LOhit <lohi...@gmail.com> wrote: >> >>> Hi Ohad, >>> >>> Thanks for the quick reply. Yes I agree with you on, "most mail clients >>> block content from external web sites", but it will still be nice to have >>> this. >>> >>> As for the patches, I am not much of a developer. But, I do write >>> perl/python scripts now and then to automate few of my day to day tasks. >>> >>> However, I would definitely try and see if I can contribute in any way to >>> add this feature. Hmm, need to learn ruby first :) >>> >>> Best regards, >>> -LOhit >>> >>> On Thu, Dec 17, 2009 at 5:19 PM, Ohad Levy <ohadl...@gmail.com> wrote: >>> >>>> >>>> >>>> On Thu, Dec 17, 2009 at 7:12 PM, LOhit <lohi...@gmail.com> wrote: >>>> >>>>> Hello, >>>>> >>>>> I have enabled summary emails from foreman and set up a cron job which >>>>> sends me periodic summary emails. However, the mail's content is sort of >>>>> plain text. Now this is more like a feature request rather than a >>>>> problem, I >>>>> am wondering if we could use some kind of HTML template and pass the >>>>> values >>>>> through this HTML template and then mail the output as a summary email to >>>>> the administrator. >>>>> >>>> Its already in HTML, and its already using an ERB template*1 - it >>>> probably needs to be improved :) >>>> >>>>> >>>>> In the HTML template we could perhaps play around highlighting failed >>>>> nodes in "RED" and probably some graphs. etc..etc... >>>>> >>>>> yeah, but most mail clients are blocking content from external web >>>> sites, so it might work (or not). >>>> >>>>> I remember doing this couple of years ago using perl and I used to get >>>>> nice tabulated summary email of the output of my custom script(basically a >>>>> log parser). >>>>> >>>> >>>> patches are welcomed! :) >>>> >>>> [1] >>>> http://theforeman.org/repositories/entry/foreman/app/views/host_mailer/summary.text.html.erb? >>>> :) >>>> >>>> for future reference, you may want to open a feature request at >>>> http://theforeman.org >>>> >>>> cheers, >>>> Ohad >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Puppet Users" group. >>>> To post to this group, send email to puppet-us...@googlegroups.com. >>>> To unsubscribe from this group, send email to >>>> puppet-users+unsubscr...@googlegroups.com<puppet-users%2bunsubscr...@googlegroups.com> >>>> . >>>> For more options, visit this group at >>>> http://groups.google.com/group/puppet-users?hl=en. >>>> >>> >>> >>> >>> -- >>> LOhit >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Puppet Users" group. >>> To post to this group, send email to puppet-us...@googlegroups.com. >>> To unsubscribe from this group, send email to >>> puppet-users+unsubscr...@googlegroups.com<puppet-users%2bunsubscr...@googlegroups.com> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/puppet-users?hl=en. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To post to this group, send email to puppet-us...@googlegroups.com. >> To unsubscribe from this group, send email to >> puppet-users+unsubscr...@googlegroups.com<puppet-users%2bunsubscr...@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/puppet-users?hl=en. >> > > > > -- > LOhit > -- LOhit -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
summary.erb
Description: Binary data