# Support for Mailgun via API

**URL:** <https://forum.mautic.org/t/support-for-mailgun-via-api/3374>\
**Category:** 3rd Party Addons\
**Created:** [February 2, 2016, 2:28am UTC](https://forum.mautic.org/t/support-for-mailgun-via-api/3374 "2016-02-02T02:28:43Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![storini](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/storini/32/1229_2.png) [@storini](https://forum.mautic.org/u/storini)\
**Post date:** [February 2, 2016, 2:28am UTC](https://forum.mautic.org/t/support-for-mailgun-via-api/3374/1 "2016-02-02T02:28:43Z")

</div>

Is there the plans also include mailgun as SMTP, like AWS? Now we can use Mailgun with option “other SMTP”. The problem is I can see the bounce mail.  
  
  
  
Or we have another path to config bounce email and use mailgun?

---

<div class="post-metadata">

**Author:** ![storini](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/storini/32/1229_2.png) [@storini](https://forum.mautic.org/u/storini)\
**Post date:** [February 2, 2016, 2:28am UTC](https://forum.mautic.org/t/support-for-mailgun-via-api/3374/2 "2016-02-02T02:28:43Z")

</div>

Is there the plans also include mailgun as SMTP, like AWS? Now we can use Mailgun with option “other SMTP”. The problem is I can see the bounce mail.

Or we have another path to config bounce email and use mailgun?

---

<div class="post-metadata">

**Author:** ![danieldocki](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@danieldocki](https://forum.mautic.org/u/danieldocki)\
**Post date:** [May 2, 2016, 12:33pm UTC](https://forum.mautic.org/t/support-for-mailgun-via-api/3374/3 "2016-05-02T12:33:16Z")

</div>

+1

---

<div class="post-metadata">

**Author:** ![vln104](https://avatars.discourse-cdn.com/v4/letter/v/5f9b8f/32.png) [@vln104](https://forum.mautic.org/u/vln104)\
**Post date:** [May 2, 2016, 1:54pm UTC](https://forum.mautic.org/t/support-for-mailgun-via-api/3374/4 "2016-05-02T13:54:49Z")

</div>

@storini @eplaku @danieldocki, I came across the need to handle bounce notifications from Mailgun so I’ve created a little plugin to receive Mailgun webhooks. Let me know if you guys would want to try it - I can share the plugin with you guys. It will mark add an email bounced mark against the email address when Mailgun fires their webhook.

---

<div class="post-metadata">

**Author:** ![storini](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/storini/32/1229_2.png) [@storini](https://forum.mautic.org/u/storini)\
**Post date:** [May 2, 2016, 1:59pm UTC](https://forum.mautic.org/t/support-for-mailgun-via-api/3374/5 "2016-05-02T13:59:03Z")

</div>

I want it 🙂 Can you share with us @vln104 ?

---

<div class="post-metadata">

**Author:** ![vln104](https://avatars.discourse-cdn.com/v4/letter/v/5f9b8f/32.png) [@vln104](https://forum.mautic.org/u/vln104)\
**Post date:** [May 3, 2016, 7:53am UTC](https://forum.mautic.org/t/support-for-mailgun-via-api/3374/6 "2016-05-03T07:53:33Z")

</div>

Hi guys, @storini ,

Please download here and let me know how you get on:

[http://app.mk8r.com/mailgun-webhook-receiver-download](http://app.mk8r.com/mailgun-webhook-receiver-download)

Linh

---

<div class="post-metadata">

**Author:** ![xstax](https://avatars.discourse-cdn.com/v4/letter/x/8491ac/32.png) [@xstax](https://forum.mautic.org/u/xstax)\
**Post date:** [May 3, 2016, 4:14pm UTC](https://forum.mautic.org/t/support-for-mailgun-via-api/3374/7 "2016-05-03T16:14:48Z")

</div>

Do we have to rename the file? Upload only the sub-folder? The name of the folder is different than the “mailgun” route for the URL. Can’t get the plugin to be installed or to be recognized by the mautic.

---

<div class="post-metadata">

**Author:** ![vln104](https://avatars.discourse-cdn.com/v4/letter/v/5f9b8f/32.png) [@vln104](https://forum.mautic.org/u/vln104)\
**Post date:** [May 3, 2016, 5:17pm UTC](https://forum.mautic.org/t/support-for-mailgun-via-api/3374/8 "2016-05-03T17:17:49Z")

</div>

Try this little trick and see what happens: go to configuration, click save & close, then go back to plugins and click the Install/Upgrade button.

You should not have to rename anything. The config is catching a public path and routes it to the Controller included in the bundle. When configuring the webhook in mailgun, you should enter /plugins/mailgun/

Linh

---

<div class="post-metadata">

**Author:** ![storini](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/storini/32/1229_2.png) [@storini](https://forum.mautic.org/u/storini)\
**Post date:** [May 11, 2016, 9:12pm UTC](https://forum.mautic.org/t/support-for-mailgun-via-api/3374/9 "2016-05-11T21:12:28Z")

</div>

Hi @vln104 thanks for developed plugin for mailgun, but I followed all steps and didnt works

---

<div class="post-metadata">

**Author:** ![vln104](https://avatars.discourse-cdn.com/v4/letter/v/5f9b8f/32.png) [@vln104](https://forum.mautic.org/u/vln104)\
**Post date:** [May 21, 2016, 4:20am UTC](https://forum.mautic.org/t/support-for-mailgun-via-api/3374/10 "2016-05-21T04:20:16Z")

</div>

Hello @storini what errors are you seeing? What happens whn you click test webhok in mailgun?

And also which Mautic version are you using? I just found out 1.4 changed the do not contact implementation a bit and I’ve not tested it yet.

---

<div class="post-metadata">

**Author:** ![spencera](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@spencera](https://forum.mautic.org/u/spencera)\
**Post date:** [July 7, 2016, 9:46pm UTC](https://forum.mautic.org/t/support-for-mailgun-via-api/3374/11 "2016-07-07T21:46:45Z")

</div>

Does this plugin work with 1.4.1?

---

<div class="post-metadata">

**Author:** ![mike](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@mike](https://forum.mautic.org/u/mike)\
**Post date:** [May 26, 2016, 7:34pm UTC](https://forum.mautic.org/t/support-for-mailgun-via-api/3374/12 "2016-05-26T19:34:17Z")

</div>

For those of us on [mautic.com](http://mautic.com) paid hosting… can we get this?

---

<div class="post-metadata">

**Author:** ![Luisfm](https://avatars.discourse-cdn.com/v4/letter/l/a9adbd/32.png) [@Luisfm](https://forum.mautic.org/u/Luisfm)\
**Post date:** [June 7, 2016, 9:39am UTC](https://forum.mautic.org/t/support-for-mailgun-via-api/3374/13 "2016-06-07T09:39:22Z")

</div>

Hi guys 🙂

I got the plugin installed. Now on Settings \>\> Configuration \>\> Email Settings shoul i select Other SMTP Server or It shoul appear the optins to select Mailgun like we have for Mandrill and Sendgrid etc?

And thanks for the plugin 🙂

---

<div class="post-metadata">

**Author:** ![eplaku](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/eplaku/32/49_2.png) [@eplaku](https://forum.mautic.org/u/eplaku)\
**Post date:** [March 27, 2016, 8:19am UTC](https://forum.mautic.org/t/support-for-mailgun-via-api/3374/14 "2016-03-27T08:19:27Z")

</div>

Same here…

---

<div class="post-metadata">

**Author:** ![maurif](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@maurif](https://forum.mautic.org/u/maurif)\
**Post date:** [April 6, 2017, 6:51am UTC](https://forum.mautic.org/t/support-for-mailgun-via-api/3374/15 "2017-04-06T06:51:17Z")

</div>

Hi, the download not work, please can re-post the new link?  
thanks

---

<div class="post-metadata">

**Author:** ![tintrang](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@tintrang](https://forum.mautic.org/u/tintrang)\
**Post date:** [April 6, 2017, 2:25pm UTC](https://forum.mautic.org/t/support-for-mailgun-via-api/3374/16 "2017-04-06T14:25:46Z")

</div>

The download link is dead (500).  
pls repost

---

<div class="post-metadata">

**Author:** ![Zawro](https://avatars.discourse-cdn.com/v4/letter/z/e8c25b/32.png) [@Zawro](https://forum.mautic.org/u/Zawro)\
**Post date:** [May 16, 2017, 4:40pm UTC](https://forum.mautic.org/t/support-for-mailgun-via-api/3374/17 "2017-05-16T16:40:48Z")

</div>

This is not for the bounced email, but for setting up SMTP for those that needs it. The following instructions is for setting up SMTP in your Mautic for mailgun.  
Log into Mautic dashboard.  
Top right corner cog icon click it Settings \> Configurations \> then Email Settings in the menu.  
Scroll down a little to find Service to send email through \> Other SMTP Server  
For SMTP host: [smtp.mailgun.org](http://smtp.mailgun.org)  
SMTP Port 465  
SMTP encryption type SSL  
SMTP Authentication mode Plain  
Username for the selected mail service [from your Mailgun (a.)]  
Password for the selected mail service [from your Mailgun (b.)]

How to get your Username and Password from your Mailgun:  
Log into your Mailgun. Click on Domains in top menu. Click on the domain you need email setup for.  
Find Default SMTP Login - that email id is your Username for above (a.).  
Find Default Password - this is your password for above (b.)

Now in Mautic click button Test Connection (above the SMTP Port part). This should take 30 seconds and it should get success. If it keeps spinning for over 1 minute, then its wrong and you keep playing around with the encryption type and authentication mode and port number maybe. I hope you get it to work. TO test this works, send an email to yourself (create a contact and put your email in it and send email to yourself - you should get it within 5 minutes of sending).

Good luck to you.

---

<div class="post-metadata">

**Author:** ![calevans](https://avatars.discourse-cdn.com/v4/letter/c/977dab/32.png) [@calevans](https://forum.mautic.org/u/calevans)\
**Post date:** [May 17, 2017, 11:10am UTC](https://forum.mautic.org/t/support-for-mailgun-via-api/3374/18 "2017-05-17T11:10:00Z")

</div>

I checked, WayBack doesn’t have it archived.

Too bad, I love Mail Gun. I’ve got it integrated for SMTP but I’d rather have full API access with a plugin.

Cheers! 🙂  
=C=

---

<div class="post-metadata">

**Author:** ![Zawro](https://avatars.discourse-cdn.com/v4/letter/z/e8c25b/32.png) [@Zawro](https://forum.mautic.org/u/Zawro)\
**Post date:** [May 17, 2017, 1:05pm UTC](https://forum.mautic.org/t/support-for-mailgun-via-api/3374/19 "2017-05-17T13:05:27Z")

</div>

@MxyzptlkFishStix is right. This is the link for the file. Click to download it.  
[http://app.mk8r.com/asset/5:mailgunwebhookreceiver?ct=YToyOntzOjY6InNvdXJjZSI7YToyOntpOjA7czo0OiJwYWdlIjtpOjE7aToxNzt9czo0OiJsZWFkIjtpOjIyMzt9](http://app.mk8r.com/asset/5:mailgunwebhookreceiver?ct=YToyOntzOjY6InNvdXJjZSI7YToyOntpOjA7czo0OiJwYWdlIjtpOjE7aToxNzt9czo0OiJsZWFkIjtpOjIyMzt9)

If that goes down, I’ve added into my online store for $0 as backup. You’ll have to check out as per normal, but price is 0. This was the easiest way for me to add it for future backup.  
[https://zawro.com/software/online/store/mailgunreceiverbundle](https://zawro.com/software/online/store/mailgunreceiverbundle)

If you have instructions on how to use this, I can add it onto the store for Users to follow. Just post here.

If vln104 wants me to take it down, please let me know, I have no problems removing it.

---

<div class="post-metadata">

**Author:** ![calevans](https://avatars.discourse-cdn.com/v4/letter/c/977dab/32.png) [@calevans](https://forum.mautic.org/u/calevans)\
**Post date:** [May 17, 2017, 10:40pm UTC](https://forum.mautic.org/t/support-for-mailgun-via-api/3374/20 "2017-05-17T22:40:02Z")

</div>

Thanks to the both of you. Thanks Zarwo for the URL. 🙂

Cheers!  
=C=

[Next page](https://forum.mautic.org/t/support-for-mailgun-via-api/3374.md?page=2)
