Easy way to collect email addresses of users?

Ideally I would just past the javascript form that is generated from my email program (mailer lite / constant contact etc). But believe in order to do this I need to create a component? Did not see any components like this made yet. What are people doing? Ideally would have a pop up that allows people to submit their email if they want to :slight_smile:

Hey @HornHighYo,

The easiest way to do this would be to use st.form to create the form and take the user input, and then make a call to the API of Constant Contact or your email marketing platform of choice (probably using the Python requests package), enrolling the user in emails or saving the properties you collected to their profile.

1 Like

Thanks Caroline! this would have been a good project for the hackathon :slight_smile:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.