Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Activation email not working correctly
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Activation email not working correctly

 Post Reply Post Reply
Author
jckruger View Drop Down
Groupie
Groupie
Avatar

Joined: 18 April 2006
Location: Australia
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote jckruger Quote  Post ReplyReply Direct Link To This Post Topic: Activation email not working correctly
    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));}

Edited by jckruger - 18 April 2006 at 12:06pm
Back to Top
coppertop View Drop Down
Newbie
Newbie
Avatar

Joined: 09 May 2006
Location: Australia
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote coppertop Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
jckruger View Drop Down
Groupie
Groupie
Avatar

Joined: 18 April 2006
Location: Australia
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote jckruger Quote  Post ReplyReply Direct Link To This Post 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


Edited by jckruger - 16 May 2006 at 1:03am
Back to Top
coppertop View Drop Down
Newbie
Newbie
Avatar

Joined: 09 May 2006
Location: Australia
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote coppertop Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
jckruger View Drop Down
Groupie
Groupie
Avatar

Joined: 18 April 2006
Location: Australia
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote jckruger Quote  Post ReplyReply Direct Link To This Post 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: - 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.
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: 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.
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.