View Full Version : MS Outlook headers in URL of email for PHP (POSSIBLE?)
imroue
12-01-2002, 07:38 PM
Ok.. this is a weird request, but let's see if its possible.
If I write an email to a group of people and I make the email in HTML format. I want to put a URL in the email and append to the end of the email that person's email address (who is reading). Is it possible to get the headers of the person who clicks on it automatically? Maybe append their email address.
Basically, I want to send an email to a group of people and I want to be notified (without using Microsofts notification method) who had read the email. If I get them to click on a URL, I can automatically (with PHP) log the fields on my server.
Any ideas?
Ankun
12-02-2002, 06:05 AM
I doubt its possible in php..the reason is that it would be loading the page in their e-mail clients folder for e-mails with html in them..and its not likely that the people reading your e-mail would have php installed in that directory to be able to manage whatever you tell php to do... so yeh, i'd say its pretty much undoable..unless you attach like an exe file that they have to open but yeh..what kinda retard just opens an exe attachment anyway? lol
err I was just thinking tho..i'm sure their client would support meta redirection..you could just put a meta redirection to a page thats on your server thas has the actual e-mail on it..then just have your formmail script (you wouldnt be able to use outlook express for this) set the meta redirect to have a variable.. such as $e-mail and set that to be the e-mail address the mail is going to, so the meta redirect would go to like message.php?e-mail=theiraddress and it would display write to a log file in the message.php file saying that $e-mail has read the file..
err sorry its somewhat not explained well, read over it and i'll fill in anything you dont understand ;)
imroue
12-02-2002, 08:51 PM
Originally posted by Ankun
I doubt its possible in php..the reason is that it would be loading the page in their e-mail clients folder for e-mails with html in them..and its not likely that the people reading your e-mail would have php installed in that directory to be able to manage whatever you tell php to do... so yeh, i'd say its pretty much undoable..unless you attach like an exe file that they have to open but yeh..what kinda retard just opens an exe attachment anyway? lol
err I was just thinking tho..i'm sure their client would support meta redirection..you could just put a meta redirection to a page thats on your server thas has the actual e-mail on it..then just have your formmail script (you wouldnt be able to use outlook express for this) set the meta redirect to have a variable.. such as $e-mail and set that to be the e-mail address the mail is going to, so the meta redirect would go to like message.php?e-mail=theiraddress and it would display write to a log file in the message.php file saying that $e-mail has read the file..
err sorry its somewhat not explained well, read over it and i'll fill in anything you dont understand ;)
Actually the second part that you have mentioned is kind of what I want. But instead of re-directing. I want to give all the email people a URL to my website. My website has PHP and I want to know how to capture through the URL the email address of the person who clicked on it in my email. For example:
T0: joe@blah.com;john@blah.com;tina@hotmail.com
subject: Whatever
Body:
Hello everyone. check out my website.
http://www.mysite.com/index.html? <---- how do i write this to take the email of the particular person who clicked on this from his/her email client.
Once i get the URL, with the information i need, my PHP code will capture it and save it to a log on my server. (I know how to do that part).. its the part of grabbing the users' email address or name or whatever tha I don't know how to do from the client.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.