Here's another Benjamin Melançon classic data dump, but the code at the bottom (based directly, as noted, on other's documentation and blog posts) is useful, at least to us.
First answer found, naturally, is the comment "A hacked working copy" in the forum post "How do I create confirmation emails for webforms"
http://drupal.org/node/333249#comment-1107252