Reputation: 11
I am creating a application that will send emails to users requesting some information to be filled. The user must be able to fill the informations requested. What should be the right approach to achieve this ,
A html form should do this or a link should be given to every different user
Upvotes: 0
Views: 97
Reputation: 8781
Email has no interactive capabilities, so you can't embed a form in the email message like you would in a webpage.
A decent solution is to embed a link in the email which takes the user to a page on your app where they can fill in a form and submit the answer to you, like with any webform.
Since you have an email for each user, you could generate the link as myapp.com/responses/${some_part_dependent_on_email}
. Where the ${some_part_dependent_on_email}
can be a hash of the email or some bijective function of the email. The first option requires that you do a more complex join to find out to which email a response belongs to, whereas the second one might expose users emails in the URLs, which is not so great.
Upvotes: 1