Print Page | Close Window

Activation email not working correctly

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=19392
Printed Date: 29 March 2026 at 4:25am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Activation email not working correctly
Posted By: jckruger
Subject: Activation email not working correctly
Date Posted: 18 April 2006 at 12:05pm
Hi,
 
First of all, Great forum software!!
 
I think I may have fixed an issue with the new registered user activation email option. Cry
 
I have set mine to notify the forum admin of new registrations to be activated. When I register a new user the user gets the email with the username and password. The forum admin gets the link to activate that user.
 
When the forum admin logs into the forum and then clicks on the link to activate the user and error message comes up saying that a variable is not defined in admin_activate.asp "blnSentEmail" on line 134. Cry
 
So I added "Dim blnSentEmail". I then got another error "Forgot the exact message" about functions\functions_send_mail.asp so I added
 
<!--#include file="functions\functions_send_mail.asp" --> just below
<!--#include file="common.asp" -->
 
to admin_activate.asp and now it works perfectly. Thumbs Up
 
I am running the latest version 8.01 of the forum on Small Business Server 2003 and configured to use CDOSYS
 
 
Just wondering if anyone else is having a similar problem.
 
The above maybe a workaround if you are having a similar problem. As I say it worked for me.
 
Cheers
 
Justin
<>function PrivoxyWindowOpen(a, b, c){return(window.open(a, b, c));}



Replies:
Posted By: coppertop
Date Posted: 15 May 2006 at 4:51am
Hey jckruger,
I have a similar problem. getting error:
     Microsoft VBScript runtime error '800a01f4'
     Variable is undefined: 'SendMail'
     /admin_activate.asp, line 133
 
However, when I refresh the page it works...
Coppertop


Posted By: jckruger
Date Posted: 16 May 2006 at 1:00am
Yes after refreshing the page it created the account but the email was never sent.
 
Did you try the above fix? The error message that I couldn't remember might have been the message you are getting.

Add the new lines to "admin_activate.asp" as I have done and try it out.

Before you do though make copies just to be sure.
 
The top lines should read:
 
<% @ Language=VBScript %>
<% Option Explicit %>
<!--#include file="common.asp" -->
<!--#include file="functions\functions_send_mail.asp" -->
<%
'****************************************************************************************
'**  Copyright Notice
 
 
And the Dim statement should look like:
 
Dim strPassword   'Needed for login include
Dim strEmailBody  'Holds the email body
Dim blnSentEmail
 
blnActivated = False
blnDbActive = False
 
Hope that fixes your problem.
 
Regards
 
Justin


Posted By: coppertop
Date Posted: 23 May 2006 at 12:43am
Works like a charm, thanks.
 
Might be worth bringing it to Bruce's attention so it can be implemented in the next release.
It also now send a notification to the User that the account has been activiated, which it did not do before.
 
Thanks Justin.
 
Coppertop


Posted By: jckruger
Date Posted: 23 May 2006 at 11:40pm
Originally posted by coppertop coppertop wrote:

Works like a charm, thanks.
 
Might be worth bringing it to Bruce's attention so it can be implemented in the next release.
It also now send a notification to the User that the account has been activiated, which it did not do before.
 
Thanks Justin.
 
Coppertop
 
I Think I told him before and he was going to make the changes in the next release. I will PM him anyway to make sure.
 
I even added the users email address that they registered with so I can see who I should activate or not. This is in Register.asp about line 1042
------------------------------------------------%>------------------------------------------
'Create admin activation email
                         strEmailBody = strTxtHi & ", " & _
                         vbCrLf & vbCrLf & strTxtEmailNewUserRegistered & " " & strMainForumName & "." & _
                         vbCrLf & vbCrLf & strTxtUsername & ": - " & decodeString(strUsername) & _
                         vbCrlf & strTxtEmailAddress & ": - " & strEmail & _
                         vbCrLf & vbCrLf & strTxtToActivateTheNewMembershipFor & " " & decodeString(strUsername) & " " & strTxtForumClickOnTheLinkBelow & ": -" & _
                         vbCrLf & vbCrLf & strForumPath & "/admin_activate.asp?USD=" & lngUserProfileID.
------------------------------------------%>------------------------------------------------
 
This sends the admin an activation email that looks like this:
 
Hi,

The following new member has registered on Forum Name.

Username: - testuser
Email Address: - mailto:testuser@whatever.com - testuser@whatever.com
To activate the new membership testuser click on the link below: -
 
It doesn't make the email address a hyperlink though as it sends it plain text.


Posted By: WebWiz-Bruce
Date Posted: 24 May 2006 at 8:40am
These changes have been made to the next version, including having the users IP address in the admin's activation email.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net