You are viewing a plain-jane printable version of http://CoverYourASP.com/MemberCode2.asp.See how this was done
| |||
Email validation of membership changesI wanted to validate the creation and deletion of members via email, and I wanted it to be automatic. A simple email to me wasn't good enough, but I didn't want to develop an application that listened to email coming in either.I compromised by sending the member an email that contained a link to a new confirm page, named C.asp. The user has to click on the link (if their email client supports that), or cut/paste the link into their browser. The email I send to confirm a new user was created with this code:
This generates an email that contains this line: http://CoverYourASP.com/C.asp?a=a&e;[email protected]&i;=7 (Note: Many email clients will suffer from a "wrap" problem, meaning the hyperlink they show will only include the part of the URL on the first line. In this case the user must use the cut/paste method to use the entire URL) C.asp in turn has the following code to decode that URL and perform the task of setting the Confirmed flag in the member record.
One last note - C.asp doesn't bother reporting if the parameters given were invalid. If the Email doesn't match the given ID then the database won't be modified thanks to the SQL statement used. |