Sendgrid or Mailchimp let's you create templates which get filled with the custom details, though you'll likely be running a cron-job to get the data to send to the email provider.
Email is a bit of a pain, there is a reason these companies exist. They aren't cheap either.