[PHP] Re: tracking emails

2004-03-15 Thread Rob Adams
Ryan A [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,
 Problem: After sending the newsletter try to see how many people have
 actually opened the email.
 Send as html and call a script via a img tag passing the member id
 (Problem: html messages is usually off)

HTML is the only method I've ever used.  If it's off, I don't think you'll
find a solution.  For those that have it on, at least you'll see them.

Another trick that might help, if you're mail server can handle it, is to
have a reply-to address like this:

bounces-id@domain.com

Some mail servers can be configured to ignore the '-' and everything after
it, letting you receive all your bounces at one address, but knowing by the
'To' field which member it is coming from.  I know this doesn't address your
problem of being able to see who actually reads the message, but it will
help you know who isn't even getting the message to begin with.


 Thanks,
 -Ryan A

  -- Rob

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: tracking emails

2004-03-15 Thread Ryan A
On 3/15/2004 11:19:13 PM, Rob Adams ([EMAIL PROTECTED]) wrote:
 Ryan A [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Hi,
  Problem: After sending the newsletter try to see how many people have
  actually opened the email.
  Send as html and call a script via a img tag passing the member id
  (Problem: html messages is usually off)

 HTML is the only method I've ever used.  If it's off, I
 don't think you'll
 find a solution.  For those that have it on, at least
 you'll see them.

 Another trick that might help, if you're mail server
 can handle it, is to
 have a reply-to address like this:

 bounces-id@domain.com

 Some mail servers can be configured to ignore the '-' and everything
 after
 it, letting you receive all your bounces at one address, but knowing
 by the
 'To' field which member it is coming from.  I know this
 doesn't address your
 problem of being able to see who actually reads the message, but it will
 help you know who isn't
 even getting the message to begin with.

Hey Rob,
Thanks for replying.

Yep, am going with html but am having a few problemsyahoo and hotmail
totally screw up the email and I dont get any confirmation :-(, after going
into view- source I see that the IMG src address is being over written by
them..

Codes pretty simple (but works) you can compare it to your code if you need
to.
//PHP file
$connected=mysql_connect($hostt, $userr, $passs) or die ('I cannot
connect to the database because: ' . mysql_error());
mysql_select_db ($db);

$query = insert into read_member values('$mem');
$result = mysql_query($query);
if(!$result){  echo 'Info not inserted.'. mysql_error();exit;}

$mimetype=image/gif; // Mime type of file

Header(Content-type: );
readfile ($filename);

and in the HTML mail:
test img
src=http://domain/testing/test_pass_image.php?mem=Ryan1filename=dot.gif;

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: tracking emails

2004-03-15 Thread Rob Adams
Ryan A [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Yep, am going with html but am having a few problemsyahoo and hotmail
 totally screw up the email and I dont get any confirmation :-(, after
going
 into view- source I see that the IMG src address is being over written by
 them..

Ok - one thing to try...

I've noticed when sending HTML emails from my client, it defaults to sending
the pictures with the email.  This makes it so that the picture links to the
email, instead of to your webserver.  I unchecked that option in my own
client and sent an email to my hotmail account.  I checked the source and it
was unmodified.

If you can try the same thing, let me know.  If it still doesn't work, there
may be another method you can try, ie:
http://domain.com/pics/id/blank.gif
This might fool hotmail.  You'd have to create a php file named pics and
configure your web server to run it as php, or just name it pics.php.

  -- Rob

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php