Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 27th, 2004, 10:44 AM
Registered User
 
Join Date: Jul 2004
Location: Memphis, , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Need guidance

Hi there !

I need the guidance in this case. I checked it at every aspects but still not able to trace out the error. The problem is as follows :

If some one get registered at dad client website, he gets a password by email. But if someone get registered himself/herself using the domain "midsouth.rr.com" he wouldn't get any such email. I don't know why the same component behaves like that..

I am using CDONT component for sending the emails. Below are the code of that file :

<%@ Language=VBScript %>
<% Response.Expires = -1000 'Makes the browser not cache this page
Response.Buffer = True 'Buffers the content so our Response.Redirect will work
%>
<% If Session("Loggeduser")=False then
Response.Redirect ("/error.asp?user=notauthenticate")
End if %>

<%

Dim strchck, achckarray, i, Rs, found
Set Rs = Server.CreateObject("ADODB.Recordset")
Set Rs1 = Server.CreateObject("ADODB.Recordset")
strchck = Request("selct")
achckarray = split(strchck,",")
found = 0
For i = lbound(achckarray) to ubound(achckarray)
if Request("alclass")="Allow" then
sqlopr="update abcd set adminappr=1 where usernum='"& achckarray(i)&"'"
end if
if Request("delclass")="Delete" then
sqlopr= " Delete from abcd where usernum='"& achckarray(i)&"'"
end if
Conn.Execute (sqlopr)
found = found + 1
Next

For i = lbound(achckarray) to ubound(achckarray)
if Request("alclass")="Allow" then
sqldata = "select * from abcd where usernum='"& achckarray(i)&"'"
Rs.Open sqldata,conn

' Sending an automated reply to the user when it successfully create thier Login.

bdy = "Dear " & Rs("userfname")& " " & Rs("userlname") & vbcrlf
bdy=bdy & vbcrlf
bdy=bdy & "Your account is approved. Below are the details of your account :" & vbcrlf
bdy=bdy & vbcrlf
bdy=bdy & "User ID : " & Rs("userid")& " " & vbcrlf
bdy=bdy & "Password : " & Rs("userpass")& "" & vbcrlf
bdy=bdy & vbcrlf
bdy=bdy & "Regards," & vbcrlf
bdy=bdy & "Webmaster"
Dim NewMail, Body
Set NewMail = Server.CreateObject("CDONTS.NewMail")
NewMail.To= Rs("useremail")
NewMail.From= "Webmaster@abcd.com"
Body= bdy
NewMail.Subject = "Abcd Login Details"
NewMail.Body = Body
NewMail.Bodyformat=1
NewMail.Mailformat=0
NewMail.Send
End if
Next

if found = 0 then
Response.Redirect("pendaccount.asp?err=notchecked" )
else
Response.Redirect("pendaccount.asp")
end if
Rs.Close
Set Rs= Nothing
Rs1.Close
Set Rs1= Nothing
Conn.Close
Set Conn = Nothing
%>

Thanks for your time and co-operation.


With Thanks !
Newkid
  #2 (permalink)  
Old July 27th, 2004, 11:52 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello,

Are you actually getting an error, or is no email being received? Can you confirm whether the email is making it by sending it through Outlook or Express, or another client? I wonder if there is a problem in the sent mail, and the email is bouncing back but you aren't getting an error message.

In addition, is it just that domain, or any other ones? For testing purposes, can you send an email to a yahoo.com account?

Brian
  #3 (permalink)  
Old July 27th, 2004, 02:54 PM
Registered User
 
Join Date: Jul 2004
Location: Memphis, , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Brian,

On the top, thanks for the prompt reply. I am not getting an error message but no email being received if someone get registered with the above mentioned domain(midsouth.rr.com). Email id is working fine. I can send & receive email using the same domain id easily.

Look, If the problem is in the code then obviously either I gets the error message or bounced back email like you said. But it's not like that..

I checked the same component with more then 15 domains.. Everywhere I received that password email apart from that midsouth.rr.com domain. Please help me, it's really a miserable problem for me.




With Thanks !
Newkid
  #4 (permalink)  
Old July 27th, 2004, 04:11 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

That's really weird. I wonder if it's network related. Do you know anything about the network configurations, such as proxy/firewall, etc.?

Brian
  #5 (permalink)  
Old July 27th, 2004, 04:23 PM
Registered User
 
Join Date: Jul 2004
Location: Memphis, , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Brian,

You're true. The problem is really weird.. I am helpless at this momment. I am knocking lots of community forum door for the same issue with a hope that someone can sort out my issue. I am trying very hard to get rid of it. I always want to see my dad smiling face not a dull face..:(

I don't think, it's a network related issue. I am aware about all those things at the age of merely 13 years..

Thanks for your valuable time.


With Thanks !
Newkid
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need guidance for PHP SOAP snowbydave1 Pro PHP 0 September 25th, 2008 07:16 AM
Need Guidance gopichaithanya C# 6 February 9th, 2007 04:57 PM
need guidance please samanta103 Intro Programming 2 March 16th, 2006 01:08 PM
Guidance required for Programming whyvenky Intro Programming 2 March 10th, 2006 05:39 AM
Guidance required whyvenky General .NET 0 February 26th, 2006 03:03 AM



All times are GMT -4. The time now is 08:49 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.