----- Original Message -----
From: "Bosky, Dave" <[EMAIL PROTECTED]>
> I want to urlencode email addresses in my CF code to prevent email
> harvesting and seem to have trouble sending email when the address is
> encoded.
> ---------------------------
> <CFMAIL
TO="%64%61%76%65%2E%62%6F%73%6B%79%40%68%74%63%69%6E%63%2E%6E%65%74"
> FROM="%64%61%76%65%2E%62%6F%73%6B%79%40%68%74%63%69%6E%63%2E%6E%65%74"
> SUBJECT="Test-Encoded"
> TYOE="html">
> Test
> </CFMAIL>
> ---------------------------
---------------------------

Why do you need to encode the TO attribute of CFMAIL? If the address is in a
completely encoded form in a link on a web page, the address should be
decoded in the act of clicking it, I believe. If not, no need to encode,
it's all on the server.

You only need to encode email addresses that are sent to the browser as part
of an HTML page. There's a UDF on cflib.org (EmailAntiSpam()?) that encodes
the characters as character entities, seems to work well...

Gyrus
[EMAIL PROTECTED]
work: http://www.tengai.co.uk
play: http://www.norlonto.net
PGP key available

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to