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

<p>For a specific solution on how to get a template HTML string with all the parameters you need <a href="https://craftcms.stackexchange.com/a/2688/258">check out this answer</a></p>

CC BY-SA 3.0
2017-04-20T12:49:42.987Z
2017-04-20T12:49:42.987Z
Andris Sevcenko
<p>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.</p>

<p>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?</p>

<templating>
Pass the rendered template HTML string to an external function
# Pass the rendered template HTML string to an external function

(Asked by: username_0 on 2017-04-20)

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?

**Tags:** templating

---

## 1 answers

### Answer by username_1 on 2017-04-20. Score: 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](https://craftcms.stackexchange.com/a/2688/258)


---

