“Reply ABOVE this LINE to POST a COMMENT.” This is how automatic email notifications from the teams’ intranet blog posts look these days. And it’s true! Now I can just reply to any email notification I receive and my comment will appear on our intranet. The only bad thing is that I don’t have an excuse anymore for not replying right away ;-)
Typically there are two ways to carry on online discussions and to keep up with the replies — mailing lists (that may have a web interface) and web forums (that may have email subscriptions). Though each of one has its own advantages and drawbacks, trying to mix both usually ends up in long threads of differently formatted messages. Besides, mailing lists are usually exposed to spamming (worse yet if spam ends up on the web) and the “from” address is really easy to forge.
As usual, we wanted it all — the reliability and readability that come with authentication in a web forum and the ease of replying through a mailing list. Since we already had the Notifications and Messaging framework and an excellent mailhandler module to fetch incoming emails, it was just a question of putting the pieces together and adding some extra security/authentication into the recipe to get to this.
Check the new “Mail2web” plug-in in the Notifications module. This first version is for Drupal 5. And by the way, we just released the Drupal 6 version of both Notifications and Messaging modules. The Mail2Web Drupal 6 version, however, will have to wait for the mailhandler module.
Being paranoid about security and spam, we added a more secure method for message authentication than the ones currently used. Our outgoing emails have some digitally assigned parameters that are checked when the reply comes back. Thus only emails posted as a direct ‘Reply-To’ operation will get in as responses. And replies to a given thread will get only into that thread, nowhere else. But best of all, these tokens are completely invisible for a regular user and should work with most email clients without the need to install any extra software. (You can set an expiration time frame for replies too).
So what do I need to to do to get it working?
- Install Mailhandler and set up an inbox for it to use to fetch email.
- Install the notifications and messaging modules and set up the notifications and messaging methods to be used. You’ll need at least one email method enabled. We have three available — the Drupal default mail, PHPMailer, and MIMEMail.
- Enable the Notifications Mail2Web module and configure it.
- Have fun and save time replying to your site users or teammates’ comments directly from your inbox.
Also included in this Beta2 is a ‘Notifications Lite’ API module, which is a tool intended for developers to send simpler and easier notifications from their modules. As easy as
notifications_lite_send($user->uid, "Hey, this is a simple
notification for you.");
// I just don't know whether you'll get it by email or by SMS, that will depend on your personal settings.
You can Reply BELOW this LINE to POST a COMMENT.
What we're doing.
Latest