Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Problem with e-mail encoding (activation email)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with e-mail encoding (activation email)

 Post Reply Post Reply
Author
claustrier View Drop Down
Groupie
Groupie


Joined: 19 October 2008
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote claustrier Quote  Post ReplyReply Direct Link To This Post Topic: Problem with e-mail encoding (activation email)
    Posted: 20 November 2010 at 12:10pm
I have problems with my activation email - the link generated ends in an error on the activate.asp page.
 
I get a HTTP 500 error - the link looks like this;
 

http://www.forumname.com/forum/activate.asp?ID=111test%2D8865%2DDAB%2D3AB1%2D9Z2Z&USD=388

 
If i remove everything after /activate.asp the page shows as expected, and even if i remove the text &USD=388 at the end - but directly linked as above i get a HTTP error 500
 
This might have happened after upgrading to 9.69, but I am not sure as I tooka long time to discover the error...Angry
 
EDIT: Funny thing happened, tried to delete the last character in the link ('8') and activation is successful. What is this ????
 
see question in next post


Edited by claustrier - 20 November 2010 at 8:02pm
Back to Top
claustrier View Drop Down
Groupie
Groupie


Joined: 19 October 2008
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote claustrier Quote  Post ReplyReply Direct Link To This Post Posted: 20 November 2010 at 1:13pm
I found out the email is encoded wrong;
 
the link

http://www.forumname.com/forum/activate.asp?ID=aaa123%2D7FBC%2DCAZ%2D21FZ%2DZF77&USD=390

 
has the hash aaa123-7FBC-CAZ-21FZ-ZF77 in the database. So the email replaces '-' with '%'
 
I use ISO-8859 and it work all the way through the forum except for the activation email, the other PM emails look fine with local characters.
 
What is wrong here???


Edited by claustrier - 20 November 2010 at 1:16pm
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 22 November 2010 at 5:11pm
The way email activation works has not changed for about 5 years, so know that it works.

The activation link is URL encoded, which means that the '-' would be changed to %2D. This is the correct encoding for URL's for the '-' sign.

I suspect that something else is causing your error. However, to findout what the problem is you need to make sure the server is showing detailed error messages and turn off Friendly Error Messages in your browser. The resulting detailed error message will the tell us what the exact problem is.
Back to Top
claustrier View Drop Down
Groupie
Groupie


Joined: 19 October 2008
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote claustrier Quote  Post ReplyReply Direct Link To This Post Posted: 22 November 2010 at 7:55pm
Firefox gives me this;
 

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

Query-based update failed because the row to update could not be found.

/forum/activate.asp, line 113

Back to Top
claustrier View Drop Down
Groupie
Groupie


Joined: 19 October 2008
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote claustrier Quote  Post ReplyReply Direct Link To This Post Posted: 22 November 2010 at 8:23pm
...and I found the error - I was completely off, so your little hint helped me a lot;
 
I had earlier added some rows to tblAuthor (golf forum, so things like home club, handicap and so on..), and after upgrading, the new register.asp of course did not have my extra fields that i had added to register.asp earlier.
 
Adding my own code to the new register.asp did the trick :-) Thanks a lot for your kind help, much appreciated!
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.