chad, we do almost exactly the same thing and it works fine, not sure why yours 
would not. this is how we do it:

<cfset encryptedEmail = 
encrypt(email,encryptionKey,encryptionAlgorithm,encryptionEncoding) />

<cfset emailLink = 
"https://#cgi.HTTP_HOST#/Folder/test.cfm?email=#encryptedEmail#";>
                
and then in the email we have:

<a href="#emailLink#">Click Here to Validate</a>

we have never had any problems with this




> I have a program that emails a user a link to verify their email.
> 
> So I thought I would take their email and use encrypt to mask it.  
> Then decrypt it to verify the email against the database.
> 
> So I wrote this and put it in the email so they could click on it:
> 
> <a href="test.cfm?UID=#urlencodedFormat(encrypt(q.email, 
> "somelongkey"))#&id=#arguments.userID#">
> 
> I am getting some errors where some users the URL variable "ID" (the 
> second variable in the hyperlink) is not defined.  Like they clicked 
> on the link in the email and part of the URL variables were chopped 
> off.
> 
> Anyone recommend a better way of making the URL so I can validate the 
> users email address?  
> 
> I thought URLEncodedFormat would fix any strange characters that would 
> not pass in a URL variable.  
> 
> Maybe it is their email program chopping off the URL variables?
> 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323594
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to