Professional Web Applications Themes

CDO for Windows 2000 vs CDO for Exchange 2000 - ASP.NET General

How can I force SmtpMail class to use CDO for Windows 2000 instead of Exchange 2000. We do not use Exchange at all. I want to do this because I am having a problem sending email from the web server. If I send part of the HTML email it will go through. If I send the whole HTML email then it gets stuck on our email server at corporate with the error: The message could not be sent to the SMTP server. The transport error code was 0x800ccc6c. The server response was 452 Filesystem error - message not accepted. Our ...

  1. #1

    Default CDO for Windows 2000 vs CDO for Exchange 2000

    How can I force SmtpMail class to use CDO for Windows 2000 instead of
    Exchange 2000. We do not use Exchange at all. I want to do this because I
    am having a problem sending email from the web server. If I send part of
    the HTML email it will go through. If I send the whole HTML email then it
    gets stuck on our email server at corporate with the error:

    The message could not be sent to the SMTP server. The transport error code
    was 0x800ccc6c. The server response was 452 Filesystem error - message not
    accepted.

    Our email admin is stumped on why I cannot send the whole email. I think
    that it may be a problem with the version of CDO that .NET is using but I am
    not sure. Any other ideas? I am at a loss right now on what to try next.

    Thank you,
    Tom





    Guest

  2. #2

    Default Re: CDO for Windows 2000 vs CDO for Exchange 2000

    As far as I know, Exchange uses the smtp service that comes with windows... so there is no version difference between Windows SMTP and EXchange SMTP..

    Here is a coding excerpt from MSDN that I always use to connect to A mailserver directly, in stead of going through the local smtp service.

    Dim iConf as new CDO.Configuration
    Dim Flds as ADODB.Field
    Set Flds = iConf.Fields

    ' The full field name strings are used below to illustrate this process.
    ' The CDO for Windows 2000 type library contains string Modules
    ' that provide these values as named constants.
    ' Use these module constants to avoid typos and so on.

    Flds("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "fakesmtp.microsoft.com"
    Flds("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
    Flds("http://schemas.microsoft.com/cdo/configuration/sendusing") = cdoSendUsingPort ' CdoSendUsing enum value = 2
    Flds("http://schemas.microsoft.com/cdo/configuration/smtpaccountname") = "My Name"
    Flds("http://schemas.microsoft.com/cdo/configuration/sendemailaddress") = """MySelf"" <myselfmicrosoft.com>"
    Flds("http://schemas.microsoft.com/cdo/configuration/smtpuserreplyemailaddress")= """Another"" <anothermicrosoft.com>"
    Flds("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic
    Flds("http://schemas.microsoft.com/cdo/configuration/sendusername") = "domain\username"
    Flds("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "password"
    Flds.Update

    Dim iMsg as new CDO.Message
    Set iMsg.Configuration = iConf

    ' ... compose message; add attachments, and so on.

    iMsg.Send ' Configuration settings in Config object are used to send the message.

    Wayne
    <Tom> wrote in message news:%2312qqKvRDHA.2008TK2MSFTNGP11.phx.gbl...
    How can I force SmtpMail class to use CDO for Windows 2000 instead of
    Exchange 2000. We do not use Exchange at all. I want to do this because I
    am having a problem sending email from the web server. If I send part of
    the HTML email it will go through. If I send the whole HTML email then it
    gets stuck on our email server at corporate with the error:

    The message could not be sent to the SMTP server. The transport error code
    was 0x800ccc6c. The server response was 452 Filesystem error - message not
    accepted.

    Our email admin is stumped on why I cannot send the whole email. I think
    that it may be a problem with the version of CDO that .NET is using but I am
    not sure. Any other ideas? I am at a loss right now on what to try next.

    Thank you,
    Tom





    Wayne Guest

  3. #3

    Default Re: CDO for Windows 2000 vs CDO for Exchange 2000

    Hi Tom,
    IIRC (but don't quote me on this), the 452 error comes from naked line
    feeds or naked carriage returns.

    The SMTP protocol requires all lines to end with \r\n ( or vbCrLf ),
    but some developers have the habbit of just doing \r or \n.

    hth,
    Dave
    [url]www.aspNetEmail.com[/url]

    <Tom> wrote in message news:<#12qqKvRDHA.2008TK2MSFTNGP11.phx.gbl>...
    > How can I force SmtpMail class to use CDO for Windows 2000 instead of
    > Exchange 2000. We do not use Exchange at all. I want to do this because I
    > am having a problem sending email from the web server. If I send part of
    > the HTML email it will go through. If I send the whole HTML email then it
    > gets stuck on our email server at corporate with the error:
    >
    > The message could not be sent to the SMTP server. The transport error code
    > was 0x800ccc6c. The server response was 452 Filesystem error - message not
    > accepted.
    >
    > Our email admin is stumped on why I cannot send the whole email. I think
    > that it may be a problem with the version of CDO that .NET is using but I am
    > not sure. Any other ideas? I am at a loss right now on what to try next.
    >
    > Thank you,
    > Tom
    dave wanta Guest

Similar Threads

  1. CFMX6.0 and Exchange 2000 - SMTP issue
    By manfjon67 in forum Coldfusion - Advanced Techniques
    Replies: 0
    Last Post: March 10th, 07:08 PM
  2. 2000 to 2003 +exchange enviroment
    By Michael in forum Windows Server
    Replies: 1
    Last Post: June 10th, 03:40 PM
  3. Replies: 3
    Last Post: June 10th, 12:14 PM
  4. Using Exchange Server 2000 to Authenticate
    By Mike in forum ASP.NET Security
    Replies: 1
    Last Post: October 15th, 05:54 PM
  5. Replies: 9
    Last Post: September 4th, 09:18 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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