[feature request] Make it possible to set notification email per page
dwcramer opened this issue · comments
Say you have a blog with multiple authors. You would like blog post authors to receive notification emails for their own posts rather than have a single notification address for the whole server. I'm imagining a page-level param, maybe named "notification_email", like the other ones you can pass in:
<script type="text/javascript">
var notification_email="jrandomblogger@somedomain.com" // Sets notification email for this page.
var rows="4"; // Sets "Comments" field height
var name_on="no"; // Disables "Name" field
var passwd_on="no"; // Disables "Password" field
var email_on="no"; // Disables "E-mail" field
var sites_on="no"; // Disables "Website" field
</script>
Btw., I'm really happy to have this alternative to Disqus!
This has been suggested to me in e-mails before. The problem I have with allowing notification e-mail configuration via JavaScript is it makes for easy e-mail mining, for spam bots and such.
Another issue is that in such use cases it's nice to have completely different configurations for each author/site, things like storing the comments in different directories or having different CSS/HTML templates for each. An example of this is Tumblr, which allows multiple blogs for a single account. So it would be better to specify something like a user ID in the JavaScript that would cause HashOver to use that user's settings.php
file instead of the default, thereby allowing a user to set a specific notification e-mail, and any number of different settings.
Setting e-mail notification via JavaScript would be nice, too, it's just not as secure and I want to avoid ever implementing it as the only option.
Technically speaking, though, since it isn't currently possible to pass information from the JavaScript code to the PHP code it isn't possible right now. I've been working on the API, and those kinds of interactions between JavaScript and PHP is being implemented.
Rest assured, these things are being worked on ;-)
Good to hear that it's being worked on! That's a good point about the email mining and spam bots. My immediate use case is on an internal network, but eventually we'll go on the open Internet so that would become an issue.