Forum Moderators: coopster
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
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 ;-)
$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
I tried it as below
$headers .= "<img src=\"http://trap_email.php?srl=$srl_no&email=$HTTP_SESSION_VARS[userid]"\>";
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
$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]