It would be really helpful if you could describe your project a bit more clearly
You want form (online ? ) Where you input data (or read data from database ? ) and send email to users based on data provided ? this is how i understood your project. Please correct me if i'm wrong. Anyway depends on what you need i can help you