Call URL action to Mailgun API

Viewed 0

Hi. I am trying to set up a Call URL action to the Mailgun API. I've read what I could find on this forum but could not find a solution. The documentation is very basic, I found no examples on how to use the custom POST functionality. This is the format that Mailgun expects using curl:

curl -s --user 'api:YOUR_API_KEY' \
https://api.mailgun.net/v3/YOUR_DOMAIN_NAME/messages \
-F from='Excited User <postmaster@YOUR_DOMAIN_NAME>' \
-F to=recipient-1@example.com \
-F to=recipient-2@example.com \
-F subject='Hello there!' \
-F text='Testing some Mailgun awesomeness!'

Does anyone know how to format a Custom Post using call URL to match this structure? Thank you.

Andreas

1 Answers

Great, thanks. Got it working now. I knew about the form fields but I had tried to send it as a Custom POST block and not as individual fields.

Related