Currently, if "Full user data" is selected under "Notifications sender", emails arrive from "username " The user's full name could be pulled from the Profiles module, if available, so that the header appears as "User's Name ". This would look a LOT better on our site, which pulls usernames from CAS (which means that they are a random assortment of letters and numbers)
Comments
Comment #1
danepowell commentedI have hacked together a basic working version of this, but it probably needs to be greatly improved by someone more experienced.
First, in messaging.module, I changed lines 779-780 to
I don't know if this is the best place to implement this, and obviously before profile_load_profile is called we should make sure the profile module exists.
Then on line 844 I changed
$message->sender_account->nameto$message->sender_account->profile_fullnameFinally on notifications.cron.inc line 370, I change
$message['sender_name'] = $sender->name;to$message['sender_name'] = $sender->profile_fullname;Comment #2
danepowell commentedNote: don't actually use this code, I am discovering that it has some odd unintended side-effects in the messaging module. Let's just call it a proof of concept :)
Comment #3
danepowell commentedAlternatively, it might be a better idea to pull the name from the Realname module, which in turn can pull the real name from a number of sources, including the Profile module or Content Profile or any CCK field.
Comment #4
jose reyero commentedIt's not as simple as that, depending on the site you may be disclosing personal information so this needs some settings for it to be configurable...
Anyway, this is notifications module and there are similar issues there, please find and follow up on them.
Comment #5
danepowell commentedFollow up at #463796: Use RealName in email headers