Registration alerts - Posted (1269 Views)
Starting Member
CSUjr
Posts: 16
16
I am trying to find the correct code that will send me an alert via email when a new member registers in the forum.
I was sent the following code, inserted in the the place specified, saved it and then uploaded it, but it doesn't work.
Code:
################################### Administrator Notification Mod ########################



strRecipientsName = strSender

strRecipients = strSender

strFrom = strSender

strFromName = strSender

strsubject = strForumTitle & " Registration "

strMessage = "The new registration of: " & Request.Form("Name") & "
(" & Request.Form("Email") & ") has occured at " & strForumTitle & "
(" & strForumURL & ")." & vbNewLine & vbNewLine & "Go and check
out: " & strForumURL & "admin_accounts_pending.asp to get their full
details." & vbNewLine & vbNewLine & "Cheers," & vbNewLine &
vbNewLine & "Forum Administrator @ " & strForumTitle

%>

<!--#INCLUDE FILE="inc_mail.asp" -->

<%
Can anyone help me with code that will work for me to receive an email alert when a new member signs up?
Thanks,
Charles<
Philippians 2:10
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Senior Member
leatherlips
Posts: 1838
1838
It doesn't look like you've added all of the code.
I found this at SnitzBitz (.02 beta):

Code:
Insert this at line 579:
'################################### Administrator Notification Mod ########################

strRecipientsName = strSender
strRecipients = strSender
strFrom = strSender
strFromName = strSender
strsubject = strForumTitle & " Registration "
strMessage = Request.Form("Name") & " (" & Request.Form("Email") & ") has registered at " & strForumURL
%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%
'#############################End of Administrator Notification Mod ########################


Modify the code around line 637 (after inserting the above) to look like this:

if strRestrictReg = "1" then
Response.Write " <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>The Administrator has restricted registration on this forum. You will receive an e-mail as soon as the Administrator approves your request.</font></p>" & vbNewLine

'################################### Administrator Notification Mod ########################
Response.Write " <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>An Email has been forwarded to the Administrator</font></p>" & vbNewLine & _
" <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>You will be contacted shortly"
'#############################End of Administrator Notification Mod ########################

else
Response.Write " <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Please follow the instructions in the e-mail that has been sent to " & ChkString(Request.Form("Email"),"email") & " to complete your registration.</font></p>" & vbNewLine
end if
<
Posted
Starting Member
CSUjr
Posts: 16
16
Thank you, I have followed the instructions and I'll test it and see if it now works.<
Philippians 2:10
Posted
Starting Member
CSUjr
Posts: 16
16
Well, It appears that I did not do this correct.
This is what I am receiving when I attempt to register as a new member;
Microsoft VBScript compilation error '800a03f6'

Expected 'End'

/SzForum/inc_mail.asp, line 361

I have uploaded a zipped copy of my register.asp file to a free file sharing site here;
http://rapidshare.de/files/31978953/My_Register.asp_file.rar.html

Can you or someone take a look at it and help me get this so it works?
Thank you,
Charles<
Philippians 2:10
Posted
Senior Member
leatherlips
Posts: 1838
1838
Posted
Starting Member
CSUjr
Posts: 16
16
This is my register.asp file in text format
http://rapidshare.de/files/32014671/register.aspFile.rar.html
Please help if you can
Thanks,
Charles<
Philippians 2:10
 
You Must enter a message