Drupal: collect email addresses of users and export them

I need a simple module in Drupal to collect my users email addresses.

In other words, I would like to show a "registration option" to collect my email addresses, and in the background there is the ability to export a file with a list of addresses.

thank

ps. I would like people to be able to send their email address even if they decide not to register on my site.

+3
source share
3 answers

I decided with the SimpleNews module. I do not use it to send email, but simply collect the address, and then use the "Export" function.

+2
source

Webform Module:

webform Drupal. Webform - , /, , .

- . .

SQL :

SELECT * FROM webform_submitted_data INTO OUTFILE 'file_name' 
+2

, , .

Webform , , .

What you ask can be easily implemented using a custom module that will show a checkbox in the user profile (or when the user logs in) and which will implement a page that allows you to export email addresses. It can also implement hook_cron()to automatically export email addresses to a file.

Any implementation should take into account that users can change the idea at every moment, and their email address should be deleted in this case.

0
source

Source: https://habr.com/ru/post/1754001/


All Articles