Forum Moderators: coopster

Message Too Old, No Replies

track recipient

how to track emails send to a recipient

         

anibis

8:05 pm on Jul 4, 2003 (gmt 0)

10+ Year Member



Could any one help me in tracking my mails. Suppose I send a mail to abc@abc.com and when abc opens that email I will get a read notification that the mail has been opened on so and so date nad so and so location.
I want it in PHP.

If the mail is self distruction mail then how do i do it?

vincevincevince

10:45 pm on Jul 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



for logged self destructing emails:

the email text always lives on your server
the email itself typically contains one large <IFRAME>, with a link below saying "if you can't read this email click here".
that SRC is to a dynamic page, which is your php script

Email:
<iframe src="www.widgets.com/mailget.php?id=1351></iframe>

Script mailget.php:
Get the text from the database
Echo text so it will fill the IFRAME
Delete text from database so it can not be read again
Log in your database whatever you want, eg time, ip

anibis

11:10 pm on Jul 4, 2003 (gmt 0)

10+ Year Member



Thanks for your help.

But I require a process by which i can track emails.

vincevincevince

8:20 am on Jul 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



? isn't that what i just gave you?

put a 1x1 image into the page, with the source being a dynamic page parsed by php

<img src="http*://widgets.com/emailtrackingimage.jpg?emailid=6516165" width="1" height="1">

you should be able to figure out pretty easily what to write in the script emailtrackingimage.jpg ;-)

anibis

9:05 am on Jul 5, 2003 (gmt 0)

10+ Year Member



Many many thanks for your suggestion.It realely healed me.thanks again

anirban

anibis

2:02 pm on Jul 7, 2003 (gmt 0)

10+ Year Member



I an using these following code

$from = $HTTP_POST_VARS['cmbemail'];
$to = $HTTP_POST_VARS['txtto'];
$sub = $HTTP_POST_VARS['txtsubject'];
$cc = $HTTP_POST_VARS['txtcc'];
$bcc = $HTTP_POST_VARS['txtbcc'];
$mess = $HTTP_POST_VARS['txtmessage'];
$head = "From: ".$HTTP_POST_VARS['cmbemail']."\n";
$head = $head."http://myurl/trap_email.php?srl=".$srl_no."&email=".$HTTP_SESSION_VARS[userid];

$hostname = "{host name}";
$uid = "id";
$pass = "pass";
$mbox = imap_open ($hostname, $uid, $pass);

$mail_info = imap_mail($to,$sub,$mess,$head,$cc,$bcc);

I Can receive the mail but when I view it, this trap_email.php doesn't execute.

Please help

vincevincevince

6:00 pm on Jul 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



no reason why it should

try putting an image embedded in the $mess

$mess.="<img src=\"http://myurl/trap_email.php?srl=".$srl_no."&email="
.$HTTP_SESSION_VARS[userid]."\" width=1 height=1 \>";

[edited by: jatar_k at 7:45 am (utc) on July 11, 2003]
[edit reason] split line for sidescroll [/edit]

anibis

8:25 am on Jul 9, 2003 (gmt 0)

10+ Year Member



Thanks for your response.

I tried it as below

$headers .= "&lt;img src=\&quot;http://trap_email.php?srl=$srl_no&amp;email=$HTTP_SESSION_VARS[userid]&quot;\&gt;";

I tried this in message body and header, but the display is always mailto: and then the entire filename with query string.

I am using sendmail, is there any other option other than displaying a image. So that I can trap the user.

Please reply

vincevincevince

8:30 am on Jul 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



1 - don't use &lt; etc here, use < > or it will never work
2 - use \" not &quot; (for 1 & 2 - pretty much as my example said)
3 - it must by in the body of the message, nowhere else
4 - the body must be html (open with and close with html tags, use proper mime-type in the headers)

anibis

10:40 am on Jul 9, 2003 (gmt 0)

10+ Year Member



Thanks for your quick response.

The above idea was too good but unfortunately it didn't work. What I have done is, I used a form and posted thet form to the php script page and by this I can trap the recipient. Is there any other option other than this?

Please reply

killroy

11:05 am on Jul 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



why not track the message poage itself? it's a bit messy to add even more extra pßages for tracking. you can track any page so it'S a bit messy to create a page and then link in various ways to soemthing else which then does the tracking.

SN

anibis

1:34 pm on Jul 9, 2003 (gmt 0)

10+ Year Member



You were right.

In outlook express it is working finr using this method.

But in any other mail like yahoo, rediffmail its not working.

Can you please provide me any suggesstion?

please reply...

anibis

6:00 am on Jul 11, 2003 (gmt 0)

10+ Year Member



Insted of form I used javascript as below.

$content = "<html><head>";
$content .= "<script language=javascript>window.open('http://trap_email.php?srl=".$srl_no."&email=". $HTTP_SESSION_VARS[userid]."','','height=10,width=10,menubar=no,toolbar=no,status=no')</script>";
$content .= "</head><body background=white><BR><BR>";
$content .= $mess."</body></html>";

But this is working in outlook where as in yahoo and rediffmail its not working.

Can any one tell me how will I do the self distruction email?

Please reply.

anirban

[edited by: jatar_k at 7:46 am (utc) on July 11, 2003]
[edit reason] split line for sidescroll [/edit]

anibis

5:43 am on Jul 12, 2003 (gmt 0)

10+ Year Member



Is there any one to help me?

anibis

10:19 pm on Jul 15, 2003 (gmt 0)

10+ Year Member



I have done it.

Thanks to all of you who ever have responded me and helped me in solving my problem.

Thanks