It would be useful to expose the "User: mail" field for node authors, so a View could be generated to list all usernames and email addresses, then exposed as a Views CSV output for using with an external mail campaign application or traditional mail merge operation.
From the looks of it this is a small modification to the views_user.inc file?
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | views-DRUPAL-5.e-mail.patch | 888 bytes | sun |
| #2 | mw.patch | 913 bytes | moshe weitzman |
Comments
Comment #1
moshe weitzman commentedAs long as the help text has a big warning in the field help text, i think this is acceptable. default drupal does not ever disclose user email address, thus the caution.
Comment #2
moshe weitzman commentedHere is a patch. this patch is running fine on boston2008 so i just set to RTBC
Comment #3
mlncn commentedThis worked for us also. (I added a handler function modeled on the author name handler function, but I'm sure the reason it didn't show up at first was not clearing the views cache at admin/build/views/tools .)
Some keywords to help people find this issue:
Node author's e-mail field for Drupal views
Drupal export users with e-mail addresses
Drupal show node author email Views
view user emails
show node author email
benjamin, Agaric Design Collective
Comment #4
sun'help' should use double-quotes.
Comment #5
Johnny vd Laar commentedi've used this idea for comments emailaddresses but isn't there a way to put this in a seperate module. i don't want to modify the views module for this
Comment #6
dwees commentedPossible handler for creating a link to an individual users contact form:
and in the original table definition change
to
If the contact module is enabled, the email text links to the contact form, otherwise it displays as plain text. Since emails addresses of users are already always filtered, this doesn't need to be run through check_plain()
Dave
Comment #7
sunComment #8
arthurf commentedApplies correctly and works as expected.
Comment #9
sunCommitted with slight corrections.