Qu4k3
Qu4k3

Reputation: 185

Emailing onclick button to retrieve user email

I was wondering what would be the best way to go about adding a "Accept" button to an email that when the users clicks the button it adds their email to a database.

The main doubt is about taking the users email on the click action, so I can redirect the button to a landing page, and retrieve the parameters (email).

Thanks in advance

Upvotes: 0

Views: 885

Answers (1)

usmanjutt84
usmanjutt84

Reputation: 353

Its very simple, you only have to do two steps in Drupal..

  • Setting up your Email template and add receiver email in URL argument(s) (like https://www.example.com/[email protected]) for anchor/button
  • When user visit such URL, check the argument(s) in URL if available get and save in the database.

Hope this would work for someone.

Upvotes: 1

Related Questions