Triggering an email populated with database/cvs data

Hi everyone, 

I’m new to Github and I’m looking for some advice. I need to trigger an email from a form completion that has data in it pulled from a database or CSV file.

Does anyone know of any advanced email marketing software that can handle this or would I need to build from scratch?

thanks

Katie