468,510 Members | 1,631 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,510 developers. It's quick & easy.

asp - error of COM+ Admin SDK

i am working in asp 3.0. and using this script....
Expand|Select|Wrap|Line Numbers
  1. objCDOSYSMail.From = request("txtFrom")
  2. objCDOSYSMail.To = request("client_email")
  3. objCDOSYSMail.Cc = "adm@adm.com"
  4. objCDOSYSMail.Subject = Request("txtSubject")
  5.  
'where client_email holds 10 email addresses
but during process it generates error
Expand|Select|Wrap|Line Numbers
  1. "(0x8004020E)
  2. Cannot modify or delete an object that was added using the COM+ Admin SDK"
  3.  
and when i change script like this one, it runs successfully
Expand|Select|Wrap|Line Numbers
  1. objCDOSYSMail.From = "abc@abc.com"
  2. objCDOSYSMail.To = "xyz@xyz.com"
  3. objCDOSYSMail.Cc = "adm@adm.com"
  4. objCDOSYSMail.Subject = Request("txtSubject")
  5.  
any suggestion, or any another alternate.
many thanks :)
Jan 28 '12 #1
2 2918
Nicodemas
164 Expert 100+
What is the value passed to the server through that form parameter? Response.Write() it to the screen and post it.
Feb 2 '12 #2
thanks for reply - Nicodemas - ....after some careful study finally i managed to solve the problem.and i am sharing my mistake, for others if they have same issue like this
here is my mistake,,
i just hard code the email address of (from) in this tag
Expand|Select|Wrap|Line Numbers
  1.  <input name="txtFrom" class="Text-Box" size="35" value="abc@abc.com">
  2.  
and these three line were like this
Expand|Select|Wrap|Line Numbers
  1. objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = "abcxyz@abcxyz.com"
  2. 'and
  3. objCDOSYSMail.From = request("txtfrom")
  4. objCDOSYSMail.To = request("client_email")
  5.  
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
Expand|Select|Wrap|Line Numbers
  1. abcxyz@abcxyz.com
  2. 'in this line
  3. objCDOSYSMail.From = request("txtfrom")
  4.  
and form was sending something else, that was my mistake, then i again change this line
Expand|Select|Wrap|Line Numbers
  1.  <input name="txtFrom" class="Text-Box" size="35" value="abc@abc.com">
  2. 'to this
  3.  <input name="txtFrom" class="Text-Box" size="35" value="abcxyz@abcxyz.com">
  4.  
and script runs successfully without any errors.
-some times our little mistake is in front of our eyes but we don't know--:):):)
Feb 3 '12 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Peter Rilling | last post: by
2 posts views Thread by bijoy | last post: by
11 posts views Thread by Phil | last post: by
8 posts views Thread by =?Utf-8?B?R2Vvcmdl?= | last post: by
4 posts views Thread by Larry Bud | last post: by
6 posts views Thread by nadomt | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.