Should be relatively easy.
Its going to take 2 steps.
Send out one of the images with a unique id per mailout, this could be the
users email address if you wanted to tie in the data per user (may be
illegal in some countries without users permission).
eg first mail
<html>
bla blah
<img src="webbug.php?id=1">
</html>
next mail
<html>
bla blah
<img src="webbug.php?id=2">
</html>
...
webbug.php
webbug.php will passthrough the image that you want to send - phpbuilder,
webmonkey, and hotscripts all have sample code for this kind of thing
online.
Make the php script pass through the image to the browser (remember to set
the relevant content type header), and count the unique id in a database (i
think due to image reload, count unique id's returned rather than number of
reads)
eg if user 1 reads email
database should add user, count=count+1 to database
for user reply read stats do a select count distinct (user) type sql query.
This is called a webbug usually, most spammers use something like this.
Remember not everyone reads mail online. So this technique will not work
for offline mail readers, and those who don't use html compatible mailers.
Also some email program's will autopreview mail, so a returned id, doesn't
necessarily mean that the user has read it, only that their mail software
has.
No code, just theory here, but should be relatively easy to implement.
Lawrence
-----Original Message-----
From: Richard Lynch [mailto:[EMAIL PROTECTED]]
Sent: September 12, 2001 12:51 PM
To: Sheni R. Meledath
Cc: [EMAIL PROTECTED]
Subject: [PHP] Re: Mailing list
You could examine the web-server logs...
But you either have to assume people only read it once, or count IPs and
ignore AOL/DHCP/Hotmail etc users whose IPs will change more or less at
random.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Sheni R. Meledath <[EMAIL PROTECTED]>
Newsgroups: php.general
To: PHP Masters <[EMAIL PROTECTED]>
Sent: Sunday, September 09, 2001 10:57 AM
Subject: Mailing list
> Hi,
>
> I am using PHP script for a mailing list application. Is there a way to
> track the no of users opened the email. All the images in this html email
> are read from the server. In that manner can we call a script from the
> email that can be used to store the no of counts. If anybody has got any
> idea on the same please let me know.
>
> Thanks & Regards
>
> Sheni R Meledath
> [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]