Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Small mod: Blocking forum email spam
 New Topic  Reply to Topic
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 6

JohnC
Junior Member

215 Posts

Posted - 27 March 2007 :  10:30:31  Show Profile  Reply with Quote
I upgraded to the latest version of Snitz (3.4.06) and now this mod no longer works. I get the following error:
error '8004020f'

/forums/inc_mail.asp, line 142
Anyone find a cure yet?<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 27 March 2007 :  11:11:56  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
I think this was made to 3.4.06... not sure though. Better post a link to a text version of your inc_mail.asp.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 27 March 2007 :  11:18:36  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
You may also want to check this: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=61514&whichpage=2&SearchTerms=inc_mail.asp,142<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

JohnC
Junior Member

215 Posts

Posted - 27 March 2007 :  11:39:22  Show Profile  Reply with Quote
Thanks for your responses, Rui. The start of this topic says "Version 1.01 - 2006/08/25, Snitz forum version: 3.4.05" posted by some guy named Rui.

All of our other email functions are working fine.

Line 142 of inc_mail.asp is "objNewMail.Send"<

Edited by - JohnC on 27 March 2007 11:55:26
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 27 March 2007 :  12:18:12  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
John, please post a text version of the file. That's a weird error, though, cause I don't think the code added changed anything the could cause that.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

JohnC
Junior Member

215 Posts

Posted - 27 March 2007 :  12:25:09  Show Profile  Reply with Quote
if trim(strFromName) = "" then
	strFromName = strForumTitle
end if

case "cdosys"
	        Set iConf = Server.CreateObject ("CDO.Configuration")
        	Set Flds = iConf.Fields 

	        'Set and update fields properties
        	Flds("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'cdoSendUsingPort
	        Flds("http://schemas.microsoft.com/cdo/configuration/smtpserver") = strMailServer
		Flds("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'cdoBasic
		Flds("http://schemas.microsoft.com/cdo/configuration/sendusername") = "xxxx@xxxx.xxx"
		Flds("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "xxxxxx"
        	Flds.Update

	        Set objNewMail = Server.CreateObject("CDO.Message")
        	Set objNewMail.Configuration = iConf

	        'Format and send message
        	Err.Clear 

		objNewMail.To = strRecipients
		objNewMail.From = strSender
		objNewMail.Subject = strSubject
		objNewMail.TextBody = strMessage
        	On Error goto 0 'Resume Next
		objNewMail.Send
		If Err <> 0 Then 
			Err_Msg = Err_Msg & "<li>Your request was not sent due to the following error: " & Err.Description & "</li>"
		End if

Set objNewMail = Nothing

on error goto 0
%>
<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 27 March 2007 :  12:36:26  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
John, can you save your current version of the pop_mail.asp, use the default Snitz 3.4.06 one and check whether it causes the same error or not?

I suspect it will, and I suspect the reason for the error may be the reason given here: http://classicasp.aspfaq.com/email/why-does-cdo-message-give-me-8004020f-errors.html

I think it may have to do with relaying, but if it is, then the normal, unchanged code will fail too.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

JohnC
Junior Member

215 Posts

Posted - 27 March 2007 :  13:15:52  Show Profile  Reply with Quote
My .05 version pop_mail.asp works fine with this mod and my .06 version does not.

Update: Tried 1 (cdoSendUsingPickup) in sendusing and get this error: "The pickup directory path is required and was not specified."

Update: Added:
Flds("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory") = "c:\inetpub\mailroot\pickup"
Now I don't get any errors but also don't get any email. Why would there be so much of a difference between versions? Both version are on the same server.

Update: Went back to 2 (cdoSendUsingPort) and now it works on the new version as well.<

Edited by - JohnC on 27 March 2007 14:30:32
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 27 March 2007 :  16:23:01  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
Ok, glad it's working now. I suspected it wasn't related to the mod.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

daveo
New Member

97 Posts

Posted - 29 March 2007 :  11:09:52  Show Profile  Visit daveo's Homepage  Reply with Quote
I implemented the original version of the mod as posted with .06 and it works great. Too 10 minutes and fixed a problem I just had occur.<

http://copdforum.portalone.us/
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 29 March 2007 :  11:14:18  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
quote:
Originally posted by daveo

I implemented the original version of the mod as posted with .06 and it works great. Too 10 minutes and fixed a problem I just had occur.


Yes, that should be the case. The previous issue was related to server authentication, not to the mod.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

matko
New Member

54 Posts

Posted - 28 May 2007 :  09:44:10  Show Profile  Reply with Quote
Rurib,

thank you for this mod, it is very useful for me, however I need it for other reason than prevent spammers. I am running forum dealing with catholic religion and spirituality and I have come across problem, that some users from different sects are registering, just to be able to reach other users by mail in effort to convert them. Until I know who the new user is, I don't want to let him/her to send e-mail to others. For this limiting by post count would work just fine, but some users come by recommendation from senior members and I would like to allow them e-mail immidiately.

I have some experience in programming asp (not professional), however I don't fully understand forum code and variables used so I was thinking of small improvement of your mod, just to add one more field in MEMBERS table, lets say M_ALLOWEMAIL yes/no and modify your code accordingly.

I am not sure if this is the right forum for this, but my idea is to try to modify your code and in case I don't understand something to ask you for little explanation. Whould it be acceptable for you?<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 28 May 2007 :  10:28:22  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
Sure, I'll be here to help if you need.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 28 May 2007 :  11:24:21  Show Profile  Visit bobby131313's Homepage  Reply with Quote
quote:
small improvement of your mod, just to add one more field in MEMBERS table, lets say M_ALLOWEMAIL yes/no and modify your code accordingly.


I just manually increase their post count so they can email. Since I'm the boss, I can do that. Please don't tell my wife I said that.


<

Switch the order of your title tags
Go to Top of Page

matko
New Member

54 Posts

Posted - 28 May 2007 :  11:46:37  Show Profile  Reply with Quote
I think simple modification of your code will do. This code is supposed to look into database if member is allowed to send e-mail independently of post count:

strSql = "SELECT M_NAME, M_POSTS, M_ALLOWEMAIL  FROM " & strMemberTablePrefix & "MEMBERS M"
   strSql = strSql & " WHERE M.MEMBER_ID = " & MemberID

   set rs = my_Conn.Execute (strSql)

   If Not rs.EOF then
      intMPosts = rs("M_POSTS")
      intAllowEmail = rs("M_ALLOWEMAIL")
	
      if intMPosts < 10 and intAllowEmail="0" then



Now I need to do two things:
1. Find a tutorial how to write dbs_ modification file.I mean syntax how to add one column into existing table with default value of 1
Any suggestion, where can I read about it? I tried to "reverse engineer" it from dbs_ files I have, will this work?

[ALTER]
MEMBERS
ADD#M_ALLOWEMAIL#INT#NULL#1
[END]

What exactly is the NULL statement for? I need to create column with value 1 for existing records, but 0 for new records.

2. modify pop_profile.asp to allow admin to change e-mail status of user from disallowed to allowed.<

Edited by - matko on 28 May 2007 12:51:00
Go to Top of Page
Page: of 6 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07