cdo transport error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MadeOfRose

    cdo transport error

    Hi all

    i was using cdo object for sending email to a customers.
    when use win2000 server or windows xp my script works correctly.
    but not on win2003 server r2.

    Different thing on my script is i use external smtp server to send my
    emails.
    for example, i dont use the iis' virtual smtp server. i assign an
    another smtp server
    like smtp.example.co m

    what is the different between environments..

    thank you

  • Mike Brind

    #2
    Re: cdo transport error


    MadeOfRose wrote:[color=blue]
    > Hi all
    >
    > i was using cdo object for sending email to a customers.
    > when use win2000 server or windows xp my script works correctly.
    > but not on win2003 server r2.
    >
    > Different thing on my script is i use external smtp server to send my
    > emails.
    > for example, i dont use the iis' virtual smtp server. i assign an
    > another smtp server
    > like smtp.example.co m
    >
    > what is the different between environments..
    >
    > thank you[/color]

    It's always a good idea to show the code you are using (just the
    relevant parts), details of the error message you are getting, and
    highlight the specific line that throws the error.

    --
    Mike Brind

    Comment

    • MadeOfRose

      #3
      Re: cdo transport error

      Const cdoSendUsingPic kup = 1
      Const cdoSendUsingPor t = 2
      Const cdoAnonymous = 0
      ' Use basic (clear-text) authentication.
      Const cdoBasic = 1
      ' Use NTLM authentication
      Const cdoNTLM = 2 'NTLM

      ' Create the message object.
      Set objMessage = CreateObject("C DO.Message")
      'Set the from address this would be your email address.
      objMessage.From = """Mehmet gUlden""<mehmet @diyalog.com>"
      ' Set the TO Address separate multiple address with a comma
      objMessage.To = "mehmet@diyalog .com"
      ' Set the Subject.
      objMessage.Subj ect = "An Email From Active Call Center."
      ' Now for the Message Options Part.
      ' Use standared text for the body.
      objMessage.Text Body = _
      "This is some sample message text.." & _
      vbCRLF & _
      "It was sent using SMTP authentication. "

      ' Or you could use HTML as:
      ' objMessage.HTML Body = strHTML

      ' ATTACHMENT : Add an attachment Can be any valid url
      'objMessage.Add Attachment("fil e://C:\Program Files\Active Call
      Center\Examples \Goodbye.wav")

      ' This section provides the configuration information for the SMTP
      server.
      ' Specifie the method used to send messages.
      objMessage.Conf iguration.Field s.Item _
      ("http://schemas.microso ft.com/cdo/configuration/sendusing") = _
      cdoSendUsingPor t

      ' The name (DNS) or IP address of the machine
      ' hosting the SMTP service through which
      ' messages are to be sent.
      objMessage.Conf iguration.Field s.Item _
      ("http://schemas.microso ft.com/cdo/configuration/smtpserver") = _
      "mail.server.co m" ' Or "mail.server.co m"

      ' Specify the authentication mechanism
      ' to use.
      objMessage.Conf iguration.Field s.Item _
      ("http://schemas.microso ft.com/cdo/configuration/smtpauthenticat e") = _
      cdoBasic

      ' The username for authenticating to an SMTP server using basic
      (clear-text) authentication
      objMessage.Conf iguration.Field s.Item _
      ("http://schemas.microso ft.com/cdo/configuration/sendusername") = _
      "username"

      ' The password used to authenticate
      ' to an SMTP server using authentication
      objMessage.Conf iguration.Field s.Item _
      ("http://schemas.microso ft.com/cdo/configuration/sendpassword") = _
      "password"

      ' The port on which the SMTP service
      ' specified by the smtpserver field is
      ' listening for connections (typically 25)
      objMessage.Conf iguration.Field s.Item _
      ("http://schemas.microso ft.com/cdo/configuration/smtpserverport" ) = _
      25

      'Use SSL for the connection (False or True)
      objMessage.Conf iguration.Field s.Item _
      ("http://schemas.microso ft.com/cdo/configuration/smtpusessl") = _
      False

      ' Set the number of seconds to wait for a valid socket to be
      established with the SMTP service before timing out.
      objMessage.Conf iguration.Field s.Item _
      ("http://schemas.microso ft.com/cdo/configuration/smtpconnectiont imeout")
      = _
      60

      ' Update configuration
      objMessage.Conf iguration.Field s.Update

      ' Use to show the message.
      ' MsgBox objMessage.GetS tream.ReadText

      ' Send the message.
      objMessage.Send


      these script gives an transport error when objMessage.Send executed.
      this script works well on XP.Does not working for external mail server
      (mail.server.co m)
      on win2003 r2 server

      any help will be great

      thank you

      Comment

      • Kyle Peterson

        #4
        Re: cdo transport error

        all that error usually means is whatever email server settings and method
        you are trying to use is not valid from where you are trying the code at

        it could be anything from not being able to see the server over the network
        to invalid information, spleeing errors, smtp authentication issues... etc
        etc


        "MadeOfRose " <mehmetgulden@g mail.com> wrote in message
        news:1146638765 .575049.46480@j 33g2000cwa.goog legroups.com...[color=blue]
        > Const cdoSendUsingPic kup = 1
        > Const cdoSendUsingPor t = 2
        > Const cdoAnonymous = 0
        > ' Use basic (clear-text) authentication.
        > Const cdoBasic = 1
        > ' Use NTLM authentication
        > Const cdoNTLM = 2 'NTLM
        >
        > ' Create the message object.
        > Set objMessage = CreateObject("C DO.Message")
        > 'Set the from address this would be your email address.
        > objMessage.From = """Mehmet gUlden""<mehmet @diyalog.com>"
        > ' Set the TO Address separate multiple address with a comma
        > objMessage.To = "mehmet@diyalog .com"
        > ' Set the Subject.
        > objMessage.Subj ect = "An Email From Active Call Center."
        > ' Now for the Message Options Part.
        > ' Use standared text for the body.
        > objMessage.Text Body = _
        > "This is some sample message text.." & _
        > vbCRLF & _
        > "It was sent using SMTP authentication. "
        >
        > ' Or you could use HTML as:
        > ' objMessage.HTML Body = strHTML
        >
        > ' ATTACHMENT : Add an attachment Can be any valid url
        > 'objMessage.Add Attachment("fil e://C:\Program Files\Active Call
        > Center\Examples \Goodbye.wav")
        >
        > ' This section provides the configuration information for the SMTP
        > server.
        > ' Specifie the method used to send messages.
        > objMessage.Conf iguration.Field s.Item _
        > ("http://schemas.microso ft.com/cdo/configuration/sendusing") = _
        > cdoSendUsingPor t
        >
        > ' The name (DNS) or IP address of the machine
        > ' hosting the SMTP service through which
        > ' messages are to be sent.
        > objMessage.Conf iguration.Field s.Item _
        > ("http://schemas.microso ft.com/cdo/configuration/smtpserver") = _
        > "mail.server.co m" ' Or "mail.server.co m"
        >
        > ' Specify the authentication mechanism
        > ' to use.
        > objMessage.Conf iguration.Field s.Item _
        > ("http://schemas.microso ft.com/cdo/configuration/smtpauthenticat e") = _
        > cdoBasic
        >
        > ' The username for authenticating to an SMTP server using basic
        > (clear-text) authentication
        > objMessage.Conf iguration.Field s.Item _
        > ("http://schemas.microso ft.com/cdo/configuration/sendusername") = _
        > "username"
        >
        > ' The password used to authenticate
        > ' to an SMTP server using authentication
        > objMessage.Conf iguration.Field s.Item _
        > ("http://schemas.microso ft.com/cdo/configuration/sendpassword") = _
        > "password"
        >
        > ' The port on which the SMTP service
        > ' specified by the smtpserver field is
        > ' listening for connections (typically 25)
        > objMessage.Conf iguration.Field s.Item _
        > ("http://schemas.microso ft.com/cdo/configuration/smtpserverport" ) = _
        > 25
        >
        > 'Use SSL for the connection (False or True)
        > objMessage.Conf iguration.Field s.Item _
        > ("http://schemas.microso ft.com/cdo/configuration/smtpusessl") = _
        > False
        >
        > ' Set the number of seconds to wait for a valid socket to be
        > established with the SMTP service before timing out.
        > objMessage.Conf iguration.Field s.Item _
        > ("http://schemas.microso ft.com/cdo/configuration/smtpconnectiont imeout")
        > = _
        > 60
        >
        > ' Update configuration
        > objMessage.Conf iguration.Field s.Update
        >
        > ' Use to show the message.
        > ' MsgBox objMessage.GetS tream.ReadText
        >
        > ' Send the message.
        > objMessage.Send
        >
        >
        > these script gives an transport error when objMessage.Send executed.
        > this script works well on XP.Does not working for external mail server
        > (mail.server.co m)
        > on win2003 r2 server
        >
        > any help will be great
        >
        > thank you
        >[/color]


        Comment

        • MadeOfRose

          #5
          Re: cdo transport error

          Thanks kyle

          i found the why this problem occur.I was using isa firewall client on
          2003 server.
          when i connect to the internet directly i dont get the problem.

          the interesting part is my winxp had the same configuration with 2003
          server.
          this is has to be win2003 specific error when you use isa firewall
          client.

          Comment

          Working...