inboundnow / inbound-mailer-retired

0 stars 1 forks source link

Is it possible to show individual status of email sent? #39

Closed DavidWells closed 9 years ago

DavidWells commented 9 years ago

http://www.screencast.com/t/dP0XgvDKY

Like this: http://www.screencast.com/t/iwAmWFuL

atwellpub commented 9 years ago

Webhooks

I think we could do something though webhooks: https://mandrill.zendesk.com/hc/en-us/articles/205583217-Introduction-to-Webhooks

The drawback would be burden on the WP server using it as an API. (Imagine 5000 open callbacks to a wp instance after a batch send to 50,000 people).

Search

Next inline is using the search method to pull in an infinite scrolling list like we use with Lead Management.

https://mandrillapp.com/api/docs/messages.JSON.html#method=search

Limitations

atwellpub commented 9 years ago

Ok I added support for this. Even if there is a 1000 send limitation this will still cover a lot of sends. I put in a request to Mandrill to add pagination support so we can get the infinite scroll going when it's ready.

It needs to be styles. I did not really bother with the styling.

Also here's an example response of data we have to work with coming from Mandrill, if you would like to use any of it in your design.

Array
(
    [0] => Array
        (
            [ts] => 1432941679
            [subject] => Test Subject
            [email] => Michelle@apoloiga.com
            [tags] => Array
                (
                    [0] => batch
                )

            [opens] => 0
            [clicks] => 0
            [state] => sent
            [smtp_events] => Array
                (
                )

            [subaccount] => 
            [resends] => Array
                (
                )

            [reject] => 
            [_id] => 4b772bf3a7d44c2fb2c3ca88aabecba9
            [sender] => Hudson@inboundnow.com
            [template] => 
            [metadata] => Array
                (
                    [email_id] => 97622
                    [lead_id] => 97299
                    [variation_id] => 0
                    [nature] => batch
                )

            [opens_detail] => Array
                (
                )

            [clicks_detail] => Array
                (
                )

        )

    [1] => Array
        (
            [ts] => 1432941678
            [subject] => Test Subject
            [email] => nate@hellaclips.com
            [tags] => Array
                (
                    [0] => batch
                )

            [opens] => 0
            [clicks] => 0
            [state] => sent
            [smtp_events] => Array
                (
                )

            [subaccount] => 
            [resends] => Array
                (
                )

            [reject] => 
            [_id] => 74e794c47b2546a98f52e56798adbab3
            [sender] => Hudson@inboundnow.com
            [template] => 
            [metadata] => Array
                (
                    [email_id] => 97622
                    [lead_id] => 97295
                    [variation_id] => 0
                    [nature] => batch
                )

            [opens_detail] => Array
                (
                )

            [clicks_detail] => Array
                (
                )

        )
)
atwellpub commented 9 years ago

@DavidWells, requesting review and commentary.