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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Lost ability to email user to user
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

steve911
Starting Member

United Kingdom
16 Posts

Posted - 28 January 2010 :  11:43:14  Show Profile
I recently installed Podge's Gatekeeper mod which seems to be working a treat but I'm now getting complaints that we've lost the ability to email user to user. Oddly, people are still able to register via e-mail validation with no trouble.

The forum's e-mail is set to use CDOSYS and the server is set to the normal outgoing SMTP setting for my hosting service.

Anyone any ideas?

Podge
Support Moderator

Ireland
3776 Posts

Posted - 28 January 2010 :  12:20:31  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Can you post a text version of your pop_mail.asp i.e. pop_mail.txt?

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

steve911
Starting Member

United Kingdom
16 Posts

Posted - 28 January 2010 :  12:43:13  Show Profile
Thanks podge. Here is the file as requested:

<%
'#################################################################################
'## Snitz Forums 2000 v3.4.06
'#################################################################################
'## Copyright (C) 2000-06 Michael Anderson, Pierre Gorissen,
'## Huw Reddick and Richard Kinser
'##
'## This program is free software; you can redistribute it and/or
'## modify it under the terms of the GNU General Public License
'## as published by the Free Software Foundation; either version 2
'## of the License, or (at your option) any later version.
'##
'## All copyright notices regarding Snitz Forums 2000
'## must remain intact in the scripts and in the outputted HTML
'## The "powered by" text/logo with a link back to
'## http://forum.snitz.com in the footer of the pages MUST
'## remain visible when the pages are viewed on the internet or intranet.
'##
'## This program is distributed in the hope that it will be useful,
'## but WITHOUT ANY WARRANTY; without even the implied warranty of
'## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
'## GNU General Public License for more details.
'##
'## You should have received a copy of the GNU General Public License
'## along with this program; if not, write to the Free Software
'## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
'##
'## Support can be obtained from our support forums at:
'## http://forum.snitz.com
'##
'## Correspondence and Marketing Questions can be sent to:
'## manderson@snitz.com
'##
'#################################################################################
%>
<!--#INCLUDE FILE="config.asp" -->
<!--#INCLUDE FILE="inc_sha256.asp" -->
<!--#INCLUDE FILE="inc_header_short.asp" -->
<!--#INCLUDE FILE="inc_func_member.asp" -->
<%
if Request.QueryString("ID") <> "" and IsNumeric(Request.QueryString("ID")) = True then
intMemberID = cLng(Request.QueryString("ID"))
else
intMemberID = 0
end if

'## Forum_SQL
strSql = "SELECT M.M_RECEIVE_EMAIL, M.M_EMAIL, M.M_NAME FROM " & strMemberTablePrefix & "MEMBERS M"
strSql = strSql & " WHERE M.MEMBER_ID = " & intMemberID

set rs = my_Conn.Execute (strSql)

Response.Write " <p><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """>Send an E-MAIL Message</font></p>" & vbNewLine

if rs.bof or rs.eof then
Response.Write " <p><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHiLiteFontColor & """>There is no Member with that Member ID</font></p>" & vbNewLine
else
strRName = ChkString(rs("M_NAME"),"display")
strREmail = rs("M_EMAIL")
strRReceiveEmail = rs("M_RECEIVE_EMAIL")

rs.close
set rs = nothing

if mLev > 2 or strRReceiveEmail = "1" then
if lcase(strEmail) = "1" then
if Request.QueryString("mode") = "DoIt" then
Err_Msg = ""
if mLev => 2 then
strSql = "SELECT M_NAME, M_USERNAME, M_EMAIL "
strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS"
strSql = strSql & " WHERE MEMBER_ID = " & MemberID

set rs2 = my_conn.Execute (strSql)
YName = rs2("M_NAME")
YEmail = rs2("M_EMAIL")
set rs2 = nothing
else
YName = Request.Form("YName")
YEmail = Request.Form("YEmail")
if YName = "" then
Err_Msg = Err_Msg & "<li>You must enter your UserName</li>"
end if
if YEmail = "" then
Err_Msg = Err_Msg & "<li>You must give your e-mail address</li>"
else
if EmailField(YEmail) = 0 then
Err_Msg = Err_Msg & "<li>You must enter a valid e-mail address</li>"
end if
end if
end if
if Request.Form("Msg") = "" then
Err_Msg = Err_Msg & "<li>You must enter a message</li>"
end if
'Gatekeeper Mod
if strPopMailGatekeeper = "1" then
select case len(Request.Form("GateKeeperAnswer"))
case "0"
Err_Msg = Err_Msg & "<li>You have not entered an answer for the Antispam question. Please use your back button and try again.</li>"
case else
if (lcase(Request.Form("GateKeeperAnswer")) <> lcase(strGatekeeperAnswer1)) and (lcase(Request.Form("GateKeeperAnswer")) <> lcase(strGatekeeperAnswer2)) then
Err_Msg = Err_Msg & "<li>You have entered a wrong answer for the Antispam question. Please use your back button and try again.</li>"
end if
end select
end if
'Gatekeeper Mod
'## E-mails Message to the Author of this Reply.
if (Err_Msg = "") then
strRecipientsName = strRName
strRecipients = strREmail
strFrom = YEmail
strFromName = YName
strSubject = "Sent From " & strForumTitle & " by " & YName
strMessage = "Hello " & strRName & vbNewline & vbNewline
strMessage = strMessage & "You received the following message from: " & YName & " (" & YEmail & ") " & vbNewline & vbNewline
strMessage = strMessage & "At: " & strForumURL & vbNewline & vbNewline
strMessage = strMessage & Request.Form("Msg") & vbNewline & vbNewline

if strFrom <> "" then
strSender = strFrom
end if
%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%
Response.Write " <p><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """>E-mail has been sent</font></p>" & vbNewLine
else
Response.Write " <p><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """ color=""" & strHiLiteFontColor & """>There Was A Problem With Your E-mail</font></p>" & vbNewLine
Response.Write " <table>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHiLiteFontColor & """><ul>" & Err_Msg & "</ul></font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" </table>" & vbNewLine & _
" <p><font size=""" & strDefaultFontSize & """><a href=""JavaScript:history.go(-1)"">Go Back To Enter Data</a></font></p>" & vbNewLine
WriteFooterShort
Response.End
end if
else
Err_Msg = ""
if trim(strREmail) <> "" then
strSql = "SELECT M_NAME, M_USERNAME, M_EMAIL "
strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS"
strSql = strSql & " WHERE MEMBER_ID = " & MemberID

set rs2 = my_conn.Execute (strSql)
YName = ""
YEmail = ""

if (rs2.EOF or rs2.BOF) then
if strLogonForMail <> "0" then
Err_Msg = Err_Msg & "<li>You must be logged on to send a message</li>"

Response.Write " <table>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHiLiteFontColor & """><ul>" & Err_Msg & "</ul></font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" </table>" & vbNewLine
WriteFooterShort
Response.End
end if
else
YName = Trim("" & rs2("M_NAME"))
YEmail = Trim("" & rs2("M_EMAIL"))
end if
rs2.close
set rs2 = nothing

Response.Write " <form action=""pop_mail.asp?mode=DoIt&id=" & intMemberID & """ method=""Post"" id=""Form1"" name=""Form1"">" & vbNewLine & _
" <table border=""0"" width=""90%"" cellspacing=""0"" cellpadding=""0"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgcolor=""" & strPopUpBorderColor & """>" & vbNewLine & _
" <table border=""0"" width=""100%"" cellspacing=""1"" cellpadding=""1"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ align=""right"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Send To Name:</font></b></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & strRName & "</font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ align=""right"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Your Name:</font></b></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """>"
if YName = "" then
Response.Write "<input name=""YName"" type=""text"" value=""" & YName & """ size=""25"">"
else
Response.Write "<font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & YName & "</font>" & vbNewLine
end if
Response.Write " </td></tr>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ align=""right"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Your E-mail:</font></b></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """>"
if YEmail = "" then
Response.Write "<input name=""YEmail"" type=""text"" value=""" & YEmail & """ size=""25"">"
else
Response.Write "<font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & YEmail & "</font>"
end if
Response.Write "</td>" & vbNewLine & _
'GateKeeper Mod
if strPopMailGatekeeper = "1" then
Response.Write " <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Antispam question:</b></font></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ valign=""top""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & strGatekeeperQuestion & "</font></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Answer:</b></font></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ valign=""top""><input name=""GateKeeperAnswer"" size=""25"" type=""text"" value=""" & Request.Form("GateKeeperAnswer") & """></td>" & vbNewLine & _
" </tr>" & vbNewLine
end if
'GateKeeper Mod
Response.write " <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ colspan=""2""><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Message:</font></b></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ colspan=""2""><textarea name=""Msg"" cols=""40"" rows=""5""></textarea></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ colspan=""2"" align=""center""><input type=""Submit"" value=""Send"" id=""Submit1"" name=""Submit1""></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" </table>" & vbNewLine & _
" </td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" </table>" & vbNewLine & _
" </form>" & vbNewLine
else
Response.Write " <p><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHiLiteFontColor & """>No E-mail address is available for this user.</font></p>" & vbNewLine
end if
end if
else
Response.Write " <p><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Click to send <a href=""mailto:" & chkString(rs("M_EMAIL"),"display") & """>" & strRName & "</a> an e-mail</font></p>" & vbNewLine
end if
else
Response.Write " <p><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHiLiteFontColor & """>This Member does not wish to receive e-mail.</font></p>" & vbNewLine
end if
end if
WriteFooterShort
Response.End
%>



Edited by - AnonJr on 28 January 2010 13:09:06
Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 28 January 2010 :  13:37:21  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
I couldn't see a problem with the code. You should try using authentication if you are using CDOSYS. What could be happening is this;

1. Registration emails are being sent because the From address is a domain on the mail server
2. User to user emails are blocked because the From address is from a domain external to the mail server

If you provide authentication (username and password) by editing the 3 lines in inc_mail.asp (the CDOSYS section) then your mail server may allow all emails to be sent (as you are providing authentication for every email sent regardless of what the from address is).

Search this forums for CDOSYS for lots of posts about how to get authentication working. Basically you need to uncomment three lines and include your username and password in inc_mail.asp

Post the CDOSYS section of inc_mail.asp with your email address and password removed if you cannot get it working.

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

steve911
Starting Member

United Kingdom
16 Posts

Posted - 28 January 2010 :  14:00:32  Show Profile
Clicking on a user's name would normally produce a pop-up where the user can write an e-mail. What I am getting is the pop-up but within it is just a HTTP 500 internal server error.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 28 January 2010 :  14:07:56  Show Profile  Send ruirib a Yahoo! Message
You should have posted the file as a link to a text file. Like that a lot of work is needed to get it to a format where you can compare it with a regular file.


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

Podge
Support Moderator

Ireland
3776 Posts

Posted - 01 February 2010 :  08:17:19  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Do you have a link to your forum and a test account ?

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2085 Posts

Posted - 02 February 2010 :  05:41:38  Show Profile
Have you turned off "Show Friendly Messages" in your browser to get the actual error message and then search on that?
quote:
Originally posted by steve911

What I am getting is the pop-up but within it is just a HTTP 500 internal server error.


Cheers,

David Greening
Go to Top of Page

steve911
Starting Member

United Kingdom
16 Posts

Posted - 08 February 2010 :  12:52:55  Show Profile
Took classics advice and turned off friendly msgs and that pointed me to a problem with pop_mail.asp. Looks like I've got into a tangle with my cut/paste technique Problem now solved.

Thanks everyone for your help/support.
Go to Top of Page

Podge
Support Moderator

Ireland
3776 Posts

Posted - 08 February 2010 :  18:13:10  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Glad you got it working.

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07