1

I want to use all of the Craft features to render a page from template, but instead of serving it to the front-end visitors I want to send it to an external mail delivery service (something like MailChimp) using cURL.

I guess I need to get the rendered HTML into a string and then pass it to my cURL function. How can I achieve this, any tips?

Brad Bell
  • 67,440
  • 6
  • 73
  • 143

1 Answers1

1

You would need to build a plugin that fetches the HTML string and then passes it on to cURL or whatever you choose.

For a specific solution on how to get a template HTML string with all the parameters you need check out this answer

Andris Sevcenko
  • 2,997
  • 11
  • 27