kortirso / emailbutler

Simple email tracker for Ruby on Rails applications. Emailbutler allows you to track sending params and delivery status of emails, resend them if required.
MIT License
20 stars 3 forks source link

Future integrations #25

Closed huda-kh closed 1 day ago

huda-kh commented 3 weeks ago

I just found the gem and we would find it very useful in our application. Any plans to integrate with Mailtrap or Mandrill?

kortirso commented 3 weeks ago

hi @huda-kh, yes, there will be more integrations, what do you need first?

huda-kh commented 3 weeks ago

hi @huda-kh, yes, there will be more integrations, what do you need first?

Awesome! We are currently using Mandrill so it would be good to have it for that. We are considering migrating to Mailtrap but were missing the resend functionality which your gem will fix for us! We can even

kortirso commented 3 weeks ago

and Mandrill/Mailchimp is the same thing right now?

huda-kh commented 3 weeks ago

and Mandrill/Mailchimp is the same thing right now?

Yes. Mandrill is Mailchimp transactional.

kortirso commented 3 weeks ago

Mailtrap is ready in master branch (not released yet) For Mandrill - while you use it already, can you please provide simple example of webhook's payload that they send?

huda-kh commented 3 weeks ago

Mailtrap is ready in master branch (not released yet)

Thank you! I look forward to testing this soon!

For Mandrill - while you use it already, can you please provide simple example of webhook's payload that they send?

We don't use webhooks at the moment, but I've just created a test webhook to RequestBin and collected the following payload:

{
    "method": "POST",
    "path": "/",
    "query": {},
    "client_ip": "54.200.104.58",
    "url": "https://eoqsnnupxdtc3n2.m.pipedream.net/",
    "headers": {
        "host": "eoqsnnupxdtc3n2.m.pipedream.net",
        "content-length": "626",
        "user-agent": "Mandrill-Webhook/1.0",
        "accept": "*/*",
        "x-mandrill-signature": "KLag92NINqXIV9/ZIcU5E5EbajM=",
        "content-type": "application/x-www-form-urlencoded"
    },
    "body": {
        "mandrill_events": "[{\"event\":\"send\",\"_id\":\"a6eaeacb1fa242e1a66dcb0cfde56e4d\",\"msg\":{\"ts\":1727307654,\"subject\":\"Test email\",\"email\":\"user@domain.com\",\"tags\":[],\"opens\":[],\"clicks\":[],\"state\":\"sent\",\"smtp_events\":[],\"subaccount\":null,\"resends\":[],\"reject\":null,\"_id\":\"a6eaeacb1fa242e1a66dcb0cfde56e4d\",\"sender\":\"no-reply@ourdomain.com\",\"template\":null},\"ts\":1727307654}]"
    }
}
kortirso commented 2 weeks ago

hi @huda-kh , I have released new version with mandrill and mailtrap, you can try to use them

if you find some bug or any question - just ping me