Problem sending E-mail when registered - Posted (2412 Views)
Starting Member
erick-flores
Posts: 11
11
I am having problem when a user register it supposed to send a notification email to my email, which is not working. Also the emails between users are not working. It looks like any of the e-mail part of my forum is working.

E-mail Server Conf: I have all the options checked to ON. And have my email address for the Administrator E-mail Address.
I put the IP address of my E-mail exchange server for the E-mail Server Address, that should be ok, right?
I did not setup this forum, my boss did. She told me the e-mail part has not worked since the first day. However I download a fresh copy of the forum and replaced the inc_mail.asp file with a fresh copy. And same results.
FYI: I have only made one MOD. The UserGroups MOD.
Need help pleaseee<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Starting Member
erick-flores
Posts: 11
11
omg! I feel stupid...my boss was asking me for that feature and I though it was possible. Ok, thank you very much :)<
Posted
Support Moderator
Podge
Posts: 3776
3776
It shouldn't be that hard to do.<
Posted
Starting Member
erick-flores
Posts: 11
11
Do you know how to?<
Posted
Support Moderator
Podge
Posts: 3776
3776
I haven't tested this but it should work.
Register.asp around line 598 find
Code:
				strMessage = strMessage & "You can change your information at our website by selecting the ""Profile"" link." & vbNewline & vbNewline
strMessage = strMessage & "Happy Posting!"
%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%
After it add
Code:
'Email Admin, a new member has registered

strRecipients = strSender
strFrom = strSender
strFromName = "Automatic Forum Email"
strSubject = "New member has registered on your forum."
strMessage = "A new member has registered with username: " & Request.Form("name") & vbNewLine
strMessage = strMessage & "on your forum here: " & strForumURL & vbNewLine & vbNewLine
strMessage = strMessage & "Regards," & VbNewLine
strMessage = strMessage & "Your Snitz forum."
%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%

If you get an error copy it and post it here.<
Posted
Snitz Forums Admin
ruirib
Posts: 26364
26364
Moving this to a proper forum...bigsmile<
Posted
Average Member
modifichicci
Posts: 787
787
http://www.snitzbitz.com/mods/details.asp?Version=All&mid=112<
Posted
Starting Member
erick-flores
Posts: 11
11
Ok, so I dont know where should I put the code. I have been reading different opinions so here is my code, hopefully you can tell me where should I put the code for the MOD

'################################### E-mail Validation Mod
if strEmailVal = "1" then
strMessage = strMessage & "Please click on the link below to complete your registration." & vbNewline & vbNewLine
strMessage = strMessage & strForumURL & "register.asp?actkey=" & actkey & vbNewline & vbNewline
else
'####################################################################################
strMessage = strMessage & "Password: " & Request.Form("Password") & vbNewline & vbNewline
end if '<---- E-mail Validation Mod - 1 line #############
end if
strMessage = strMessage & "You can change your information at our website by selecting the ""Profile"" link." & vbNewline & vbNewline
strMessage = strMessage & "Happy Posting!"
%>
<!--#INCLUDE FILE="inc_mail.asp" -->

<%
end if
else
Response.Write " <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """ color=""" & strHiLiteFontColor & """>There Was A Problem With Your Details</font></p>" & vbNewLine & _<
Posted
Starting Member
erick-flores
Posts: 11
11
thats the code in my register.asp from line 598 to 615<
You Must enter a message