Problems with CDOSys and Win2K

Ask a Question related to ASP Components, Design and Development.

  1. #1

    Default Problems with CDOSys and Win2K

    Hello,

    I have a Win2K server that I run a website on. I have an asp page that
    sends an email to me when someone makes a request or provides feedback on
    the website. It has worked fine until some point in the last month. I know
    there were a bunch of "Critical Updates" that Microsoft forced on my machine
    and forced the restart. Could that have anything to do with the reason the
    email doesn't work anymore? I keep getting a "Page cannot be displayed"
    error when I post to the asp page that sends the email. I also have another
    third party ASP.net application that doesn't send email anymore, so that's
    why I wondered if it was the component. Below is the function that I'm
    using to send the email.

    Any help would be greatly appreciated.

    Thanks!


    if mailComp = "CDOSYS" then
    set cdoMessage = Server.CreateObject("CDO.Message")
    set cdoConfig = Server.CreateObject("CDO.Configuration")
    '
    cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing")
    = 2
    '
    cdoConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver"
    ) = smtpServer
    cdoConfig.Fields.Update
    set cdoMessage.Configuration = cdoConfig
    cdoMessage.From = fromAddr
    cdoMessage.ReplyTo = replyTo
    cdoMessage.To = recipients
    cdoMessage.Subject = subject
    cdoMessage.HtmlBody = body
    on error resume next
    cdoMessage.Send
    if Err.Number <> 0 then
    SendMail = "Email send failed: " & Err.Description & "."
    end if
    set cdoMessage = Nothing
    set cdoConfig = Nothing
    exit function
    end if

    'Send email (JMail version).

    if mailComp = "JMail" then
    set mailObj = Server.CreateObject("JMail.SMTPMail")
    mailObj.Silent = true
    mailObj.ServerAddress = smtpServer
    mailObj.Sender = fromAddr
    mailObj.ReplyTo = replyTo
    mailObj.Subject = subject
    addrList = Split(recipients, ",")
    for each addr in addrList
    mailObj.AddRecipient Trim(addr)
    next
    mailObj.ContentType = "text/html"
    mailObj.Body = body
    if not mailObj.Execute then
    SendMail = "Email send failed: " & mailObj.ErrorMessage & "."
    end if
    exit function
    end if


    Rico Guest

  2. Similar Questions and Discussions

    1. Session Problems in PHP 4.3.8 Install on Win2K Server
      Hi All, This is my first installation of PHP and I'm stumbling around in the dark. I've also installed MySQL 4.0.20d. So I'm trying to...
    2. CDOSYS vs CDONTS
      hello i have resently installed win 2003 web. me and my clients are used to use CDONTS and have meny asp pages configured fore it BUT 2003 uses...
    3. CDOSYS NNTP
      Is it possible to send/receive nntp messages via CDOSYS without a 3rd party news component? The NNTP links I have found appear to be related to MS...
    4. Problems intalling DBD::InterBase in a Win2k machine
      Im trying to install DBD::Interbase on a Win2k machine, I tried using CPAN module but it shows an error, so I tried to install it by hand......
    5. XP Pro client joins Win2K domain faster than Win2K Pro client
      Any thoughts on why a Win XP Pro client joins a domain faster than a Win 2000 Pro client? The only difference is the client software (ie Win XP Pro...
  3. #2

    Default Re: Problems with CDOSys and Win2K

    Rico wrote:
    > I have a Win2K server that I run a website on. I have an asp page
    > that sends an email to me when someone makes a request or provides
    > feedback on the website. It has worked fine until some point in the
    > last month. I know there were a bunch of "Critical Updates" that
    > Microsoft forced on my machine and forced the restart. Could that
    > have anything to do with the reason the email doesn't work anymore?
    > I keep getting a "Page cannot be displayed" error when I post to the
    > asp page that sends the email.
    Start here for viewing better error messages:
    [url]http://www.aspfaq.com/show.asp?id=2109[/url]


    > I also have another third party ASP.net application that doesn't
    > send email anymore, so that's why I wondered if it was the
    > component. Below is the function that I'm using to send the email.
    Once you get more descriptive error messages, the problem may reveal itself.
    Among the many possibilites include SMTP services being turned off, lacking
    the disk space to drop messages into the pickup folder (if using local
    services) and changes on your relay or smart host servers (if you use
    those).

    Also, I note that you do not perform an update on cdoConfig.Fields:

    cdoConfig.Fields(
    "http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

    cdoConfig.Fields(
    "http://schemas.microsoft.com/cdo/configuration/smtpserver") = smtpServer

    cdoConfig.Fields.Update()



    --
    Dave Anderson

    Unsolicited commercial email will be read at a cost of $500 per message. Use
    of this email address implies consent to these terms.



    Dave Anderson Guest

Posting Permissions

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

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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139