Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional 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
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 28th, 2012, 05:25 AM
Registered User
Points: 90, Level: 1
Points: 90, Level: 1 Points: 90, Level: 1 Points: 90, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2012
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Default asp - error of COM+ Admin SDK

i am working in asp 3.0. and using this script....
Code:
objCDOSYSMail.From = request("txtFrom")
objCDOSYSMail.To = request("client_email")
objCDOSYSMail.Cc = "adm@adm.com"
objCDOSYSMail.Subject = Request("txtSubject")
'where client_email holds 10 email addresses
but during process it generates error
Code:
"(0x8004020E)
Cannot modify or delete an object that was added using the COM+ Admin SDK"
and when i change script like this one, it runs successfully
Code:
objCDOSYSMail.From = "abc@abc.com"
objCDOSYSMail.To = "xyz@xyz.com"
objCDOSYSMail.Cc = "adm@adm.com"
objCDOSYSMail.Subject = Request("txtSubject")
any suggestion, or any another alternate.
many thanks :)
Reply With Quote
  #2 (permalink)  
Old January 29th, 2012, 06:41 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

mmmm always interesting seeing a classic ASP error that I have never seen before. IS your string of email addresses semicolon delimited (or comer also works, I have never been sure which one to use.........). have you wrapped a trim function round it, have you check for not allowed characters etc?

Response.write both the request("txtFrom") and request("cleint_email") values to the browser and paste then here - Im 100% its one of these.
__________________
Wind is your friend
Matt
Reply With Quote
  #3 (permalink)  
Old January 30th, 2012, 07:28 AM
Registered User
Points: 90, Level: 1
Points: 90, Level: 1 Points: 90, Level: 1 Points: 90, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2012
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Default

i have also use this but still getting error
Code:
set rsemailall = server.CreateObject ("ADODB.RecordSet")
sql="Select client_email from news where Newsletter=True"
rsemailall.Open sql,conn
while not rsemailall.EOF 

objCDOSYSMail.From = request("txtfrom")
'objCDOSYSMail.To = trim(rsemailall.Fields("client_email"))

Last edited by asad_ahmad; January 30th, 2012 at 07:29 AM. Reason: [/code]
Reply With Quote
  #4 (permalink)  
Old January 30th, 2012, 06:11 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Did you even read my post?

If you want help why wouldnt you do as I asked, which was:

'Response.write both the request("txtFrom") and request("cleint_email") values to the browser and paste then here'

Hopefully you do understand what write to the browser means? I would like to see the actual values at run time, not the ASP code
__________________
Wind is your friend
Matt
Reply With Quote
The Following User Says Thank You to mat41 For This Useful Post:
asad_ahmad (January 31st, 2012)
  #5 (permalink)  
Old January 31st, 2012, 01:39 AM
Registered User
Points: 90, Level: 1
Points: 90, Level: 1 Points: 90, Level: 1 Points: 90, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2012
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Default

yes i understand what write to the browser means. and i really appreciate that you helped me, and i managed to solve the problem.
here is my mistake,,
i just hard code the email address of (from) in this tag
Code:
 <input name="txtFrom" class="Text-Box" size="35" value="abc@abc.com">
and these three line were like this
Code:
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = "abcxyz@abcxyz.com"
'and
objCDOSYSMail.From = request("txtfrom")
objCDOSYSMail.To = request("client_email")
and then, when i got your reply i again chk all my form values and email sending script, i finally managed to correct this problem.
so when script executed it was looking for
Code:
abcxyz@abcxyz.com
'in this line
objCDOSYSMail.From = request("txtfrom")
and form was sending something else, that was my mistake, then i again change this line
Code:
 <input name="txtFrom" class="Text-Box" size="35" value="abc@abc.com">
'to this
 <input name="txtFrom" class="Text-Box" size="35" value="abcxyz@abcxyz.com">
and script runs successfully without any error. thanks for your clue mat41
Reply With Quote
  #6 (permalink)  
Old January 31st, 2012, 06:23 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Glad you sorted your issue out. For others who have this error, have found this post and cant understand asad's confusing solution. The problem will be one of two things:

1..the validity of your string in either to .to, .From, .cc or .bcc areas.

2..you may also have problems using email addresses that are not valid in your domain EG abcxyz@abcxyz.com - You should use valid addresses to eliminate this as your issue.
__________________
Wind is your friend
Matt
Reply With Quote
Reply


Thread Tools
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
Error : Iphone sdk is not installed zsyed1 BOOK: Professional iPhone Programming with MonoTouch and .NET/C# 0 March 27th, 2011 09:29 PM
Windows Media Encoder SDK Error robbyking C# 5 August 19th, 2008 03:43 AM
ASP.NET 2.0 Web Site Admin error on Creating User fmegersa ASP.NET 2.0 Basics 0 December 1st, 2006 08:57 PM
Error in BizTalk - SDK 2004 module 2 solution vijay_rb Biztalk 1 August 12th, 2004 06:11 AM
DirectPlay Voice sample from DirectX SDK error koushikpaul Visual C++ 0 May 27th, 2004 07:30 AM



All times are GMT -4. The time now is 12:48 AM.


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