Automatically send a discount code to new subscriber?

New Member
1 0 0

I am using District theme. I was able to create a popup when the user comes to my site to sign up with their email address. The popup with add them to customers with the email address and the tag "popup" I want to be able to send a discount code after they sign up to the email the customer provided.

Can this be done default Shopfiy site?