# Mailgun & API Parameters

**URL:** <https://forum.bubble.io/t/mailgun-api-parameters/8525>\
**Category:** APIs\
**Created:** [December 5, 2016, 1:07pm UTC](https://forum.bubble.io/t/mailgun-api-parameters/8525 "2016-12-05T13:07:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@Martin](https://forum.bubble.io/u/Martin)\
**Post date:** [December 5, 2016, 1:07pm UTC](https://forum.bubble.io/t/mailgun-api-parameters/8525/1 "2016-12-05T13:07:59Z")

</div>

I’m working with Mailgun as it serves my needs better than Sendgrid.

I’m having trouble with some parameters though. I’m able to pass all parameters except ones that looks like this:

v:my-custom-data  
o:tag  
o:tracking

Mailgun doesn’t receive the parameters at all. Wonder if that is an issue in how Bubble is set up, or if I’m just simply setting it up wrong:

 ![](https://us1.discourse-cdn.com/bubble/original/2X/c/c71aa778841566a39ee8d1701c2d5062ceae97fd.png)

---

<div class="post-metadata">

**Author:** ![mishav](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mishav/32/6420_2.png) [@mishav](https://forum.bubble.io/u/mishav)\
**Post date:** [December 5, 2016, 2:34pm UTC](https://forum.bubble.io/t/mailgun-api-parameters/8525/2 "2016-12-05T14:34:04Z")

</div>

If the parameters go into the URL, as it looks in the screenshot, the colon “:” would cause an issue, try replacing it with the url-encoded form, i.e. instead of “o:tag” use “o%3Atag”.

Note I haven’t tested this myself, just an educated guess.

---

<div class="post-metadata">

**Author:** ![Martin](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@Martin](https://forum.bubble.io/u/Martin)\
**Post date:** [December 5, 2016, 3:07pm UTC](https://forum.bubble.io/t/mailgun-api-parameters/8525/3 "2016-12-05T15:07:00Z")

</div>

Thanks for the suggestion. Unfortunately, this didn’t work.

---

<div class="post-metadata">

**Author:** ![Martin](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@Martin](https://forum.bubble.io/u/Martin)\
**Post date:** [December 6, 2016, 9:22am UTC](https://forum.bubble.io/t/mailgun-api-parameters/8525/4 "2016-12-06T09:22:12Z")

</div>

Just in case someone would come across similar problem:

I got a solution by changing the Content-Type to application/x-www-form-urlencoded

Then put the parameters into the body:  
from=&to=&subject=&text=&html=&bcc=&o%3Atag=

 ![](https://us1.discourse-cdn.com/bubble/original/2X/f/faec04d6cd8c0b6b156e8572229933a6af44b1b1.png)

---

<div class="post-metadata">

**Author:** ![mohamad.r.khan](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@mohamad.r.khan](https://forum.bubble.io/u/mohamad.r.khan)\
**Post date:** [April 23, 2017, 8:51am UTC](https://forum.bubble.io/t/mailgun-api-parameters/8525/5 "2017-04-23T08:51:25Z")

</div>

Hello,

I’m also looking to use mailgun.  
or some alternative to sendgrid

Can you talk about why you chose mailgun?

Also, if i chose mailgun, do i still need to have a email service hosting?
