I have the following code that should email users who signup for a e-newsletter
the opportunity to confirm their subscription:
<cfmail to="#form.Email#" from="admin@test.com" server="mail.test"
subject="Serenity Confirmation" charset="iso-8859-1" mailerid="Serenity"
port="25">
A request to have your email added to the Serenity database in order to
receive our e-newsletter has been received. In order to confirm your addition,
please click on the link below:
<a target=_blank class=ftalternatingbarlinklarge
href="http://www.serenity.com/verify.cfm?Act=#form.Email#&ID=#URLEncodedformat(f
orm.User_UUID)#
It">http://www.serenity.com/verify.cfm?Act=#form.Email#&ID=#URLEncodedformat(for
m.User_UUID)#
It</a> seems to display correctly in Outlook, and Yahoo, but in MSN, the url
either becomes a 'mailto', or some other link that doesn't work...... plus, in
Hotmail/MSN, the system displays the link/http line with:
<a target=_blank class=ftalternatingbarlinklarge
href="http://www.serenityboise.com/verify.cfm?Act=#form.Email#">http://www.seren
ityboise.com/verify.cfm?Act=#form.Email#</a> being underlined as a active url
link and the rest as just black text.
Does anyone have a solution for this? Its very frustrating......
Thanks!
Steve
Fernis - 30 May 2006 20:22 GMT
><a target=_blank class=ftalternatingbarlinklarge
href="http://www.serenityboise.com/verify.cfm?Act=#form.Email#">http://www.seren
ityboise.com/verify.cfm?Act=#form.Email#</a> being underlined
>as a active url link and the rest as just black text.
Are you saying there are pound (#) signs in the e-mail that is being sent?
That can't be right... the link won't work either, if it wasn't evaulated
correctly before sending.
There can logically be only one pound (#) sign in an URL, so the MSN behaviour
would seem logical, since your link has a malformed target URL.
SteveG144 - 30 May 2006 20:30 GMT
No, when the email is sent out, there are no #'s in the email itself, all the
#'s have been replaced with the correct information, both pulled from a form.
But its not being displayed correctly in hotmail/msn, it stops displaying it
as a link after the & in the url.
jdeline - 30 May 2006 21:02 GMT
If the first parameter in the query string is being passed correctly, a
work-around might be to place form.Email and form.User_UUID into a
pipe-delimited string and passing that as the one and only parameter in the
query string. When the user clicks the link, the linked-to page can decode the
email address and UUID. See concept code below.
<CFSET combo = Form.email & "|" & form.user_UUID>
http://www.serenity.com/verify.cfm?combo=#URLEncodedFormat(combo)#
----------------------------
<!--- linked-to page --->
<CFSET email = ListGetAt(URL.combo, 1, "|")>
<CFSET user = ListGetAt(URL.combo, 2, "|")>
Kronin555 - 30 May 2006 21:31 GMT
The reason this is happening is because of the ampersand.
Replace your &s with &
So your link becomes:
<a target=_blank class=ftalternatingbarlinklarge
href="http://www.serenity.com/verify.cfm?Act=#form.Email#&ID=#URLEncodedform
at(form.User_UUID)#
">http://www.serenity.com/verify.cfm?Act=#form.Email#&ID=#URLEncodedformat(f
orm.User_UUID)#
</a>
SteveG144 - 30 May 2006 22:49 GMT
That didn't seem to help. Now when the email is sent, it comes through as:
Act=boise_bound@hotmail.com&ID=874184BC%2D115B%2D652C%2DAA0DC0A36ABCFD36
<blockquote>quote:<br><hr><i>Originally posted by: <b><b>Kronin555</b></b></i>
The reason this is happening is because of the ampersand.
Replace your &s with &
<hr></blockquote>