request help in solving email sending in asp appln

This is a discussion on "request help in solving email sending in asp appln" within the Classic ASP section. This forum, and the thread "request help in solving email sending in asp appln are both part of the Program Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old Sep 5th, 2005, 08:13
New Member
Join Date: Sep 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
request help in solving email sending in asp appln

hi, i am dtg a site where user is to retrieve his password which will be send to his email. but i gt this error when the script is called:

Error Type:
(0x8004020F)
The event class for this subscription is in an invalid partition
/sendemail2.asp, line 54


the line 54 is

at.Send
in script below.
i tried many oneline search but to no avail.. can anyone help? thanks


<%

CONST SMTPServer = "localhost"
CONST cdoURL = "http://schemas.microsoft.com/cdo/configuration/"
'to send email to user for his password

Dim ename
ename=request.form("uName")

Dim eemail
eemail=request.form("uemail")

session("tosendusermail")=request.form("uemail")

set rschoice = Server.CreateObject("ADODB.Recordset")
strSQL= "SELECT Password from Userdetails where (userName='"& request.form("uName") &"') AND (email='"& request.form("uemail") &"')"
rschoice.open strSQL,connectDB

session("tosendpasswd")=rschoice(0)





HTML = "

This Email is sent to you by The Online Registration Forum System.</P>"
HTML = HTML & "

For your info. please, thank you.
"
HTML = HTML & "Hi This is your retrieved password. </P>"
HTML = HTML & "Password : " & session("tosendpasswd") & "
"
HTML = HTML & "

Please use the Password to loginto the System in the link as shown
"
HTML = HTML & "<u> http://localhost/login.asp</u>
"

subject = "Hi"


set cdoM = CreateObject("CDO.Message")
set cdoC = CreateObject("CDO.Configuration")
Set cdoF = cdoC.Fields
With cdoF
.Item(cdoURL & "sendusing") = 2
.Item(cdoURL & "smtpserver") =SMTPServer
.Item(cdoURL & "smtpconnectiontimeout") = 20
.Update
End With

set cdoM.Configuration = cdoC

With cdoM
.From = "thebmwz4@yahoo.com"
.To = "thebmwz4@yahoo.com"
.Subject = "Subject"
.HTMLBody = "HTML"
.Send
End With


Set cdoM = Nothing
Set cdoS = Nothing
Set cdoF = Nothing
response.Redirect "localhost/main2.asp"
%>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Sep 5th, 2005, 09:32
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Are you running a SMTP server locally?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Sep 5th, 2005, 11:57
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
If you want to use "localhost" as your smtp server you dont need to specify it in the code, its localhost by default, get rid of those configuration settings, also get rid of the double quotes here:

.HTMLBody = "HTML"

this will give you an email that just has the word "HTML" in it and nothing else.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Sep 20th, 2005, 07:42
New Member
Join Date: Sep 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
in reply

hi, just wanna say the issue is sloved. thanks to all
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
request, help, solving, email, sending, asp, appln

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP email form not sending email Kurt PHP Forum 1 Oct 12th, 2007 04:26
sending email arrays with php ppgpilot PHP Forum 2 Jan 25th, 2007 16:49
Email + attachment sending manzil PHP Forum 1 Aug 4th, 2006 13:40
Sending Email Paul00000001 JavaScript Forum 3 Jul 29th, 2006 03:16
Sending email Paul00000001 PHP Forum 6 Jul 10th, 2006 11:49


All times are GMT. The time now is 14:32.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42