Using Drupal 7.9.
I want to show a confirmation message to any anonymous user who submits a comment or uses the site contact form. The current situation is really awkward: if an anon user posts a comment, it will await moderation by me, but they see nothing but an unchanged article page; if a user sends a message, they just get sent to the home page.
I don't know about web experts, but that makes me assume that it failed and I just wasted my time writing a comment or message that got silently discarded. This is surely a major oversight by the developers of Drupal.
So I want to show a custom message, something like "Your comment has been received and is awaiting moderation" and "Your message has been sent and you should receive a reply shortly". I played around a bit with the Trigger module, and found that it can create custom messages for certain actions, including posting comments. But my message only showed up when I posted a comment while logged in: when testing it as an anon user, I got no message.
(Incidentally, I already have notes above the comment form and e-mail form, giving brief info for each. Users are made aware that moderation is in use, but I'm not openly admitting that they can assume that their comment has been received if the page doesn't change!).