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

asked 09 Aug, 10:47

AndreasT's gravatar image

AndreasT
133
accept rate: 0%


Hi AndreasT -

After some Googling I found the -F means the next data is a form field.

https://curl.se/docs/manpage.html#-F

So you'd configure the Call URL action something like this:

https://imgur.com/a/laiFDe4

https://www.poweradmin.com/help/latestsmhelp.aspx?page=action_callurl.aspx

link

answered 09 Sep, 17:34

Doug's gravatar image

Doug ♦♦
10.2k122138
accept rate: 22%

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.

(10 Sep, 03:09) AndreasT
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×12
×6
×1
×1

Asked: 09 Aug, 10:47

Seen: 382 times

Last updated: 10 Sep, 03:09