Giter Site home page Giter Site logo

Add Mailgun adapter about bamboo HOT 26 CLOSED

stevedomin avatar stevedomin commented on May 3, 2024
Add Mailgun adapter

from bamboo.

Comments (26)

princemaple avatar princemaple commented on May 3, 2024 2

FYI all #125, in case you want to review the implementation.

from bamboo.

paulcsmith avatar paulcsmith commented on May 3, 2024 1

I have a few other priorities before this so if someone wants to tackle this that would be great. You can check out the MandrillAdapter as an example https://github.com/thoughtbot/bamboo/blob/master/lib/bamboo/adapters/mandrill_adapter.ex. If someone decides to tackle this please note it here so two people don't work on it at once :D

from bamboo.

paulcsmith avatar paulcsmith commented on May 3, 2024 1

I've started on this

from bamboo.

paulcsmith avatar paulcsmith commented on May 3, 2024

Right on. Just a heads up, I only plan to keep Mandrill, Local and Test adapters in Bamboo core for now. If you ping me when you are done with a Mailgun adapter I can make a chart/list and add it to the README. I'll add all external adapters there so people can find them :)

from bamboo.

mtwilliams avatar mtwilliams commented on May 3, 2024

What's the reasoning behind only supporting Local, Test, and Mandrill adapters in core? @paulcsmith

from bamboo.

paulcsmith avatar paulcsmith commented on May 3, 2024

@mtwilliams Great question. I'm leaving Mandrill in for now because it's what we use in production so I know that it works. It also makes it so that if I change how Bamboo works I can quickly and easily test that the MandrillAdapter also works. If I add Mailgun (or whatever other adapter) it would mean I would have more adapters to update and I couldn't test them out easily since we don't use it in production. It also means that if something changes in Mailgun and I need to update the adapter, I would need to cut a new release of bamboo, even though Bamboo itself hasn't changed. I'm ok taking on that responsibility for Mandrill because we can test it on our own apps before releasing to the public.

Once Bamboo hits 1.0 I will extract the MandrillAdapter so that Bamboo core only has Local and Test adapters. I'll add instructions to the README for adding the MandrillAdapter dep and how to use it, along with a list of other third party adapters (Mailgun, SMTP, etc.)

Does that answer your question?

from bamboo.

mtwilliams avatar mtwilliams commented on May 3, 2024

I see. My thought process was why single out Mandrill. That makes total sense.

from bamboo.

philipgiuliani avatar philipgiuliani commented on May 3, 2024

Is there already for a adapter as library online? I would like to work on the SMTP adapter, but its my first library so i need some example how to structure it!

from bamboo.

paulcsmith avatar paulcsmith commented on May 3, 2024

@philipgiuliani that would be awesome if you worked in an am to adapter. You can check out the mandrill adapter in this repo: https://github.com/paulcsmith/bamboo/blob/master/lib/bamboo/adapters/mandrill_adapter.ex

Also here are some basic docs on implementing an adapter: https://github.com/paulcsmith/bamboo/blob/master/lib/bamboo/adapter_behaviour.ex

I hope that helps. Feel free to comment here or ping me in Slack if you need help. There is an open issue for adding an SMTP adapter with a link to some possible SMTP libraries that could potentially be used for sending the email

from bamboo.

mtwilliams avatar mtwilliams commented on May 3, 2024

I wrote an adapter for SendGrid. If you have any questions, feel free to ping me.

from bamboo.

paulcsmith avatar paulcsmith commented on May 3, 2024

Nice work @mtwilliams. I'll add that to the README :D

from bamboo.

ricn avatar ricn commented on May 3, 2024

@stevedomin Any progress on the Mailgun adapter?

from bamboo.

ricn avatar ricn commented on May 3, 2024

@stevedomin If you don't have the time to do it right now I'm willing to create an adapter for Mailgun next week.

from bamboo.

paulcsmith avatar paulcsmith commented on May 3, 2024

@ricn I think you can go ahead and do the Mailgun adapter if you'd like :) Ping me if/when it's done and I can add it to the README :)

from bamboo.

jandillmann avatar jandillmann commented on May 3, 2024

👍 for a Mailgun adapter 😄

from bamboo.

ricn avatar ricn commented on May 3, 2024

I haven't got the time to implement it yet so if anyone want to step up and do it that would be great :-)

from bamboo.

paulcsmith avatar paulcsmith commented on May 3, 2024

Closed by #125 thanks @princemaple!

from bamboo.

princemaple avatar princemaple commented on May 3, 2024

@paulcsmith if you could make a new release, I'd be able to test this package in a real app soon.

from bamboo.

paulcsmith avatar paulcsmith commented on May 3, 2024

@princemaple That would be awesome if you could test it out a bit more. I have a couple more things I want to do for the next release.

What we've been doing is using the github master branch if there are features we need right away

{:bambo, "~> 0.4", github: "thoughtbot/bamboo"}

That should let you test out the adapter without waiting for hex. LMK if that works for what you need :)

from bamboo.

princemaple avatar princemaple commented on May 3, 2024

@paulcsmith yeah I'm aware of that. I was being lazy, not wanting to add git to my docker image :)

👍 all good, release when you feel it's ready.

from bamboo.

paulcsmith avatar paulcsmith commented on May 3, 2024

Haha ok, yeah that makes sense. I’ll try to get it out this Friday or next :)

On Apr 21, 2016, at 9:58 AM, Po Chen [email protected] wrote:

@paulcsmith https://github.com/paulcsmith yeah I'm aware of that. I was being lazy, not wanting to add git to my docker image :)

all good, release when you feel it's ready.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub #85 (comment)

from bamboo.

princemaple avatar princemaple commented on May 3, 2024

Thanks!

On Thu, 21 Apr 2016 at 23:59 Paul Smith [email protected] wrote:

Haha ok, yeah that makes sense. I’ll try to get it out this Friday or next
:)

On Apr 21, 2016, at 9:58 AM, Po Chen [email protected] wrote:

@paulcsmith https://github.com/paulcsmith yeah I'm aware of that. I
was being lazy, not wanting to add git to my docker image :)

all good, release when you feel it's ready.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub <
https://github.com/thoughtbot/bamboo/issues/85#issuecomment-212932163>


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#85 (comment)

from bamboo.

Andorbal avatar Andorbal commented on May 3, 2024

I'm actually looking for a non-Mandrill adapter for my app, so I can give this a try tonight. Is there something specific you want tested?

from bamboo.

paulcsmith avatar paulcsmith commented on May 3, 2024

@Andorbal Thank you! Really anything would be fine. If it sends email it's probably fine. @princemaple Tested it, and the unit tests seem to be pretty comprehensive.

If you do run into anything though, please open up an issue :)

from bamboo.

Andorbal avatar Andorbal commented on May 3, 2024

Will do!

On Thu, Apr 21, 2016 at 9:13 AM, Paul Smith [email protected]
wrote:

@Andorbal https://github.com/Andorbal Thank you! Really anything would
be fine. If it sends email it's probably fine. @princemaple
https://github.com/princemaple Tested it, and the unit tests seem to be
pretty comprehensive.

If you do run into anything though, please open up an issue :)


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#85 (comment)

from bamboo.

paulcsmith avatar paulcsmith commented on May 3, 2024

I just released Bamboo 0.5.0 to hex. This includes the new Mailgun adapter. Here is a full list of changes: https://github.com/thoughtbot/bamboo/blob/master/CHANGELOG.md

Eventually all adapters will be moved into their own repo, but for now it's in Bamboo core

from bamboo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.