# Send Email with mailgun

**URL:** https://discourse.nodered.org/t/send-email-with-mailgun/66078
**Category:** General
**Tags:** http-request
**Created:** [5 August 2022 15:35 UTC](https://discourse.nodered.org/t/send-email-with-mailgun/66078 "2022-08-05T15:35:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![dereckradford](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@dereckradford](https://discourse.nodered.org/u/dereckradford)
#### Post date: [5 August 2022 15:35 UTC](https://discourse.nodered.org/t/send-email-with-mailgun/66078/1 "2022-08-05T15:35:16Z")

</div>

I am extremely new with Node-RED and I am struggling with translating mailguns curl to http request in Node-RED. I found a couple examples on here but nothing that looks like there curl command.

Any help would be greatly appreciated.

```auto
curl -s --user 'api:ENTER_API_KEY_HERE' \
	 https://api.mailgun.net/v3/sandbox.mailgun.org/messages \
	 -F from='Mailgun Sandbox <postmaster@sandbox.mailgun.org>' \
	 -F to='Dereck Radford <dereck.radford@domain.com>' \
	 -F subject='Hello Dereck R \
	 -F template='waitingforpayment' \
	 -F h:X-Mailgun-Variables='{"test": "test"}'

```

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [4 October 2022 15:35 UTC](https://discourse.nodered.org/t/send-email-with-mailgun/66078/2 "2022-10-04T15:35:44Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
