Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,032
    Thanks
    75
    Thanked 4,325 Times in 4,291 Posts
    I think you need to separate the email address by semicolons.

    The Request() is probably using a COMMA+SPACE delimiter.

    Try this:
    Code:
    objCDOSYSMail.To = Replace( Trim(request("client_email")), ", ", ";" )
    Note that the is ", " -- quote comma space quote
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #3
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,032
    Thanks
    75
    Thanked 4,325 Times in 4,291 Posts
    But if that's not it, DEBUG DEBUG DEBUG.


    Response.Write "<hr>DEBUG: " & Request("client_email") & "<hr>"
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •