473,387 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Email Headers

hi,
let me explain my problem with a scenario.
after completing a registration procees of a user ,an email will be sent to
the user for confirmation.the email contains a link and when the user clicks
on it he will be taken to a page for confirmation.

problem
----------
i want the user to go to the confirmation page only by clicking the url in
the mail sent to him.if he copy the link from the mail and paste on the
address bar of the browser it should take the user to an error page.

how will i check wheather the user came to the confirmation page by clicking
link in the email.
jeebu
Nov 19 '05 #1
1 1189
Jeebu, what you're requesting probably falls in the category of a "hack",
meaning that there are most likely better / cleaner / safer / more relaible
ways to accomplish the same objectives. Mail readers have an amazing delta
of capability; something that works fine in one environment is likely to
fail in many others.

Having said that, some possible angles of approach;

+ You might try checking the header tags to see if there's any difference;
perhaps the browser identification will be different in some scenarios; but
this is unlikely to be a complete solution.

+ In an HTML email, you can make it slightly more difficult to get at the
Url in the email by embedding a hyperlink; e.g. "Click here to activate".
This at least takes the Url out of direct view. In conjunction with that
you could make the Url horribly ugly and even unrecognizable, e.g. use %xx
for every character.

+ In an HTML email it might also be possible to define a BASE, and then
make the Url relative. This would make copying/pasting the Url ineffectual
(i.e. it's not a complete url); you'd have to click on it in the email in
order for the BASE tag to be processed. This is conjecture; I have no idea
if it would work.

+ In an HTML email you might make the activation hyperlink execute a
javascript function that does the link, rather than linking directly.

However, I suspect there are some specific goals behind your request that
could be solved using other approaches.

For example, if your end goal is to assure yourself that the person
activating the account is the same person that requested activation, you
might consider using cookies instead. Joe visits your website, registers,
gets a unique cookie. He gets an email with a unique registration link,
clicks it, hits your website again, the cookie is checked, and you make a
decision on whether to activate him.

For practical purposes, I'd assume that the "detect where the Url was
launched from" approach is a no-go. Even if you found a solution, it
probably won't work in enough email readers to make it viable. Take a look
at your overall goals and you may find a cleaner solution.

/// M
"Jeebu" <je*****@eostek.com> wrote in message
news:Oh**************@TK2MSFTNGP12.phx.gbl...
hi,
let me explain my problem with a scenario.
after completing a registration procees of a user ,an email will be sent to the user for confirmation.the email contains a link and when the user clicks on it he will be taken to a page for confirmation.

problem
----------
i want the user to go to the confirmation page only by clicking the url in
the mail sent to him.if he copy the link from the mail and paste on the
address bar of the browser it should take the user to an error page.

how will i check wheather the user came to the confirmation page by clicking link in the email.
jeebu

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ann | last post by:
Hi, I am trying to send a html email from a php script. This script emails a common information to all the members in the database. The only problem is I cannot specify colors, hyperlinks...
3
by: Dave Smithz | last post by:
Hi there, Previously in my PHP code I was using Sendmail to send out emails to people in the MySQL DB. The requirement cam along to be able to send attachments and so I dug around for an easy...
11
by: Hanjo Grüßner | last post by:
Hello, I'm not shure wether it's OT or not. I want to use an eMail as a trigger to start a program. E.g. an eMail-Group: any group-member sends an eMail to a group-e-adress an the Mail is...
10
by: I_love_php | last post by:
What is the best way to send one email to 9000 users without them getting it in Junk mail ? Please help me with ur ideas
2
by: Alex | last post by:
Hi, My booking system sends a HTML formated email as a recipt to the client on completion of their booking. All is working well however it has been pointed out to me that not all people's email...
0
by: alanwo | last post by:
Hi Experts, I am trying to send out email and bounce back to different from "FROM" email address: Dim webmail As New System.Net.Mail.MailMessage("B@FROM.com", "ghyddfhg@gmail.com", "hello",...
7
by: geek7 | last post by:
OK, I'm trying to create an email and when it sends the email, it mostly works except that there are '!' inserted at some spots. Checking the html source of the email, looks like they are...
4
by: sadieslc | last post by:
I'm working on a PHP script, and the info from the form shows up in the headers of the email that I receive, but it doesn't show up in the body of the email. Can you please help me figure out what...
2
by: Erik Witkop | last post by:
So I have been trying to get this to work all day. I can't get a local file on my web server to attach to an email. Right now I have it printing out in the body of the email. Please help me with...
27
matheussousuke
by: matheussousuke | last post by:
I'm having trouble with e-mail sending, I mean, the website is suposed to send a confirmation email after sign up, but it gets like text plain instead of HTML May someone help me, please? ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.