Comments (26)
FYI all #125, in case you want to review the implementation.
from bamboo.
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.
I've started on this
from bamboo.
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.
What's the reasoning behind only supporting Local, Test, and Mandrill adapters in core? @paulcsmith
from bamboo.
@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.
I see. My thought process was why single out Mandrill. That makes total sense.
from bamboo.
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.
@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.
I wrote an adapter for SendGrid. If you have any questions, feel free to ping me.
from bamboo.
Nice work @mtwilliams. I'll add that to the README :D
from bamboo.
@stevedomin Any progress on the Mailgun adapter?
from bamboo.
@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.
@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.
👍 for a Mailgun adapter 😄
from bamboo.
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.
Closed by #125 thanks @princemaple!
from bamboo.
@paulcsmith if you could make a new release, I'd be able to test this package in a real app soon.
from bamboo.
@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.
@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.
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.
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.
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.
@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.
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.
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)
- Bamboo.SentEmailViewerPlug with SendGrid Dyanmic Templates
- defimpl for maps
- Failed to use "mime" because HOT 5
- How to implement or configure a sending rate limit?
- How to implement DKIM HOT 1
- Assertions are destructive
- SentEmailViewerPlug shows empty emails with Dynamic Templates & LocalAdapter
- SendGrid's root level custom_args is currently unsupported HOT 1
- Mime Version Conflict HOT 2
- FQDN/hostname isn't getting passed or set correctly
- NilRecipientsError thrown incorrectly for SendGrid emails
- `dynamic_template_data` getting ignored for individual personalization in SendGrid
- Fix Regex match failure on `refute_email_delivered_with/2`
- Sending errors lead to argument errors
- There is no way to disable subscription_tracking in SendGrid adapter
- Support for Sendgrid's `reply_to_list`
- [Proposal] Add Optional Callback for User, to load existing sent emails.
- assert_email_delivered_with has verbose failure output
- incorrect typespec in Adapter behavior HOT 12
- deliver_later spec
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bamboo.