SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    Working on it... Contrid's Avatar
    Join Date
    Apr 2006
    Location
    Online
    Posts
    955
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Email Tracker - xmlhttprequest();

    Hey there,

    For the first time, I'll attempt to build a small and simple email tracker for notifying my database of when an email was read. This will be used with mass emails which are sent out.

    I haven't coded anything just yet, but I will start shortly.

    Question is...
    For those of you whom have experience, do you know if I'll be able to use XMLHttpRequest(); in an HTML email in order to communicate with my PHP backend.

    Please let me know what your ideas are.
    Thanks.
    And so I got lost in code...completely asphyxiated by it...

    Premium WordPress plugins - Tribulant Software

  2. #2
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No you cant. Most email programs block JavaScript in emails by default.

  3. #3
    Working on it... Contrid's Avatar
    Join Date
    Apr 2006
    Location
    Online
    Posts
    955
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Pepejeria View Post
    No you cant. Most email programs block JavaScript in emails by default.
    Thank you for your response. I appreciate it.
    Ok, I fully understand. Sorry...I don't have experience with this.

    How about this :
    HTML Code:
    <img src="http://www.domain.com/trackingScript.php?param1=value1&param2=value2" alt="trackingImage" />
    Do you think something like that will work?
    My PHP script on that file can update my database or whatever it needs to.
    I haven't tried it. I will shortly, but I'm just playing around with ideas still.

    Thanks for your advice.
    And so I got lost in code...completely asphyxiated by it...

    Premium WordPress plugins - Tribulant Software

  4. #4
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Linking to an image will work sometimes but most programs block images by default from unknown sources (IE. not in your address book) so enless the user says show images it won't work.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  5. #5
    Working on it... Contrid's Avatar
    Join Date
    Apr 2006
    Location
    Online
    Posts
    955
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by logic_earth View Post
    Linking to an image will work sometimes but most programs block images by default from unknown sources (IE. not in your address book) so enless the user says show images it won't work.
    Ah, very true. The idea wasn't that bad though.
    What else can I try? How do other people do it?
    And so I got lost in code...completely asphyxiated by it...

    Premium WordPress plugins - Tribulant Software

  6. #6
    SitePoint Enthusiast codlib's Avatar
    Join Date
    Jan 2007
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  7. #7
    Working on it... Contrid's Avatar
    Join Date
    Apr 2006
    Location
    Online
    Posts
    955
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by codlib View Post
    Thanks for your post.
    So iframe is a solution?
    The image will also work, but only if the user allows images to be shown.
    And so I got lost in code...completely asphyxiated by it...

    Premium WordPress plugins - Tribulant Software


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •