Email results of template

(3 posts) (2 voices)
  1. duane, Member

    Hi again,

    Is there a way to use the dbr.mail commands to send a 'page' (html file) vs. an email per row?

    I've created a template and associated function with a multi-row query. I've made the template so it generates good HTML for sending the page via email, but when I tested with the dbr.mail code, I noticed it sends one email per row vs the page.

    I'd like to use the resulting page HTML (minus the mydbr envelope) as the email body. Is there a way to do this?

    I know I could build a looping function to dynamically build the html and then use that as the body, but sending the results of the template/page itself doesn't seem possible (yet).

  2. myDBR Team, Key Master

    Duane,
    you can use dbr.record to define the content of the mailed report. Note that different mail clients vary greatly on their capability of handling HTML.

    --
    myDBR Team

  3. duane, Member

    Thanks for this - that put me on the road to doing what I needed!


Reply

You must log in to post.