#1
  1. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,650
    Rep Power
    171

    Is it possible to tell if an email has been opened or not by a web hook?


    Is it possibe to check if an email has been opened or not with a web hook?
    A web hook is an integration method provided by an API so that when a certain action is detected a trigger is made to execute
    .
    Thanks
  2. #2
  3. Code Monkey V. 0.9
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2005
    Location
    A Land Down Under
    Posts
    2,095
    Rep Power
    1990
    Not really. The industry-standard way is to embed a 1x1 pixel tracking image into the HTML version of the message. That only tracks opens when users view HTML emails and allow images. You can also track opens by tracking clicks on links if you use tracking URL's instead of standard URL's, but this can cause users to worry about where the links are leading to as they are pretty anomolised. Anything else doesn't get tracked, and can't be tracked.
  4. #3
  5. Mad Scientist
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Oct 2007
    Location
    North Yorkshire, UK
    Posts
    3,661
    Rep Power
    4123
    what Catacaustic said is correct

    However, I'm interested in your context of 'Web hook's...these are generally 'events' spawned by your app code to which an event 'listener' listens for and executes some other code....think javascript onclick methods but for PHP (sure, you can't have an on click event in php but it may be 'coreModule_A_constructFired' or anything else).

    some Mail Transfer Agents (MTAs, eg postfix) allow similar things, often called milters (mail filters) but these are for pre-delivery things like adding dkim header records and antivirus checks. Ie - not for tracking openings
    I said I didn't like ORM!!! <?php $this->model->update($this->request->resources[0])->set($this->request->getData())->getData('count'); ?>

    PDO vs mysql_* functions: Find a Migration Guide Here

    [ Xeneco - T'interweb Development ] - [ Are you a Help Vampire? ] - [ Read The manual! ] - [ W3 methods - GET, POST, etc ] - [ Web Design Hell ]
  6. #4
  7. Web Developer/Musician
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Nov 2004
    Location
    Tennessee Mountains
    Posts
    2,408
    Rep Power
    1031
    I've used the image method for tracking when an e-mail newsletter was opened. In situations like that it can be reasonably reliable because the people who receive the e-mail know what it is and open it specifically to see the content. However if the e-mail client has images turned off it won't load the images and that kind of tracking won't work.
  8. #5
  9. Mad Scientist
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Oct 2007
    Location
    North Yorkshire, UK
    Posts
    3,661
    Rep Power
    4123
    if you run your own mail server and have access to the logs then you can interrogate the log files to find a status message.

    4xx are soft bounces (eg mailbox full, try again later)
    5xx are hard bounces (eg mailbox does not exist, you're blacklisted)
    200 is successfull.

    With postfix I am able to get the 'Sent' status and I also get the remote server's message queue ID.

    However, just because the recipient's server accepted the email does not mean that it will get to the inbox or even be opened.

    Expect a 1% open rate, and then 1 - 10% (of the opens) to click. So if you're lucky you'll see a CTR of 0.1%

    Email marketing is along the lines of throw enough **** and some of it will stick.

    However, you can continue to add addresses to your list, then cleanse your list(s) by trashing anyone who doesn't open or click within 3 different mailings. We often find ourselves buying about 1 - 2 million email addresses, from which we can glean upto 50k ( ~2%).
    I said I didn't like ORM!!! <?php $this->model->update($this->request->resources[0])->set($this->request->getData())->getData('count'); ?>

    PDO vs mysql_* functions: Find a Migration Guide Here

    [ Xeneco - T'interweb Development ] - [ Are you a Help Vampire? ] - [ Read The manual! ] - [ W3 methods - GET, POST, etc ] - [ Web Design Hell ]

IMN logo majestic logo threadwatch logo seochat tools logo