RE: [PHP] Re: Mailing list
| From: | Lawrence dot Sheed at dfait-maeci dot gc dot ca | Date: | Wed, 12 Sep 2001 07:45:44 +0000 |
| Subject: | RE: [PHP] Re: Mailing list | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-67011@lists.php.net to get a copy of this message | ||
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:ceo@l-i-e.com]
Sent: September 12, 2001 12:51 PM
To: Sheni R. Meledath
Cc: php-general@lists.php.net
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 richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
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 <sheni@cyber-gear.com>
Newsgroups: php.general
To: PHP Masters <php-general@lists.php.net>
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
> sheni@cyber-gear.com
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net