There are two issues:

1) we're not hooked into the normal mailer system.   It shouldn't be
hard to do if there's demand for it, but in the meantime you can
render DRYML to a string with DRYML.render.   See the documentation
starting on line 149 here:
https://github.com/tablatom/hobo/blob/master/dryml/lib/dryml.rb

2) Getting whitespace correct will be annoying.     Not a problem if
you're sending HTML mail, but for plain text mail you'll have to be
careful with it.   Take note of the <%= -%> carriage return swallowing
ERB tag.   Most of the tags in Rapid aren't careful with whitespace so
you might need to roll your own.   Patches to fix whitespace issues
will probably be accepted, too.

cheers,
Bryan

On Sun, Feb 19, 2012 at 5:37 PM, devcurmudgeon <[email protected]> wrote:
> Seems like an obvious idea, but I can't find any documentation to
> support this.
>
> I'm trying to create a scheduled rake task to send email reports. It
> could be done with an erb template, obviously, but it would be nice to
> have DRYML.
>
> Throwing a dryml template at normal mailer gives the following
> error... any thoughts?
>
> undefined method `dryml_context' for #<UserMailer:0x00000004d91670>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Hobo Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/hobousers?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to