Feature Request: Add a "From" field preference to Messaging Settings

friolator - October 17, 2009 - 19:28
Project:Messaging
Version:6.x-2.1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

So, in most cases, Notifications/Messaging are working as we would expect, and the notifications setting mentioned in the title, which should set the site address as the From address of outgoing emails, is working correctly. However, for Flag Friend notifications, they are not. At first I assumed the problem was with Flag Friend, but I've stepped through the code as best I can and simply can't see what flag_friend is doing that might cause this, so I'm not really sure where the problem is coming up. I would think that the setting in notifications should override anything that's being done before the message gets to it, no?

Any ideas?

#1

friolator - October 19, 2009 - 13:50
Title:with notifications settings "From" address set to "No one" some notifications go out with user email address exposed» Feature Request: Add a "From" field preference to Messaging Settings
Project:Notifications» Messaging
Version:6.x-2.1» 6.x-2.1
Component:Miscellaneous» Code
Category:support request» feature request

I'm moving this over to Messaging. After tracing what's happening, I realize this isn't a Notifications thing at all. Also, changing this to a feature request:

My request is that Messaging get an admin preference for the From field for outgoing emails, just like Notifications has. In Notifications, you can specify "<site_mail>" or "User Name <site_mail>" or "User Name <user_email>" for the outgoing mail's From field. However, there is no such equivalent in Messaging's settings, and there really should be.

We have built a custom module that uses the messaging framework to send out emails/private messages to users when things are flagged in a certain way with Flags, and we're seeing the same problem outlined above that we see with flag_friend: emails are *always* coming from the sender, not from the site mail, which is what we want.

This is a huge privacy problem on a social networking site, where people don't necessarily want their email addresses floating around. In our use case, every time someone comments on anything on the site, all subscribers would receive their email address if they're set to get the messages via email. And every time someone gets a friend request via email, it will come from the sender's email, not the site.

We can come up with a solution in our own module for this, but not in flag_friend. In the short term, we'll work around this by hardcoding the site email into $params['from'] in messaging_mail_send_msg(), but I think this would be a valuable feature to have.

 
 

Drupal is a registered trademark of Dries Buytaert.