CDO Error: "The pickup directory path is required and was not specified"

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

    CDO Error: "The pickup directory path is required and was not specified"

    Hi there,

    I can't seem to find any info on this error message that's generated when
    sending email with CDO:

    "The pickup directory path is required and was not specified"

    Does anyone know whether the cdoSMTPServerPi ckupDirectory field of the
    Message object defaults and whether it's normal to have to set this value
    explicitly. My W2K workstations and servers function OK without this
    setting, but one of the XP workstations is playing up. All SMTP directories
    are set to the default 'C:\inetpub\mai lroot\'.

    Thanks,

    Alan


  • Aaron [SQL Server MVP]

    #2
    Re: CDO Error: "The pickup directory path is required and was not specified"

    What does your code look like? Have you tried using an external SMTP server
    instead of local pickup?




    --
    Please contact this domain's administrator as their DNS Made Easy services have expired.

    (Reverse address to reply.)





    "Alan Howard" <Xalan.howardX@ Xparadise.net.n zX> wrote in message
    news:e2bqXBhYEH A.1656@TK2MSFTN GP09.phx.gbl...[color=blue]
    > Hi there,
    >
    > I can't seem to find any info on this error message that's generated when
    > sending email with CDO:
    >
    > "The pickup directory path is required and was not specified"
    >
    > Does anyone know whether the cdoSMTPServerPi ckupDirectory field of the
    > Message object defaults and whether it's normal to have to set this value
    > explicitly. My W2K workstations and servers function OK without this
    > setting, but one of the XP workstations is playing up. All SMTP
    > directories
    > are set to the default 'C:\inetpub\mai lroot\'.
    >
    > Thanks,
    >
    > Alan
    >
    >[/color]


    Comment

    • Alan Howard

      #3
      Re: CDO Error: &quot;The pickup directory path is required and was not specified&quot;

      Thanks Aaron.

      Using Port and an remote SMTP server works fine from the XP box that chokes
      using Pickup (and the other workstations/servers). Have also tried
      reinstalling SMTP svc on the XP box but that hasn't cleared the fault. Also
      ran adsutil.vbs and the (default??) pickup directory looks fine.

      Code from the dispatch routine looks like this:
      ('SendUsingMeth od', 'MailFormat' are enums passed into this routine,
      'Attachments' is an array of attachements):

      ' Configure the email.
      Set cdoConfig = New CDO.Configurati on
      With cdoConfig.Field s
      If (SendUsingMetho d = ufSendUsingPick up) Then
      .Item(cdoSendUs ingMethod) = cdoSendUsingPic kup
      Else
      .Item(cdoSendUs ingMethod) = cdoSendUsingPor t
      .Item(cdoSMTPSe rver) = SmtpServerName
      End If
      .Update
      End With

      Set cdoMessage = New CDO.Message
      With cdoMessage

      Set .Configuration = cdoConfig
      ' Set the format.
      If (MailFormat = ufMailFormatTex t) Then .MimeFormatted = False Else
      ..MimeFormatted = True
      .From = FromAddress
      .To = ToAddress
      .CC = CcAddress
      .BCC = BccAddress
      .Subject = Subject
      .TextBody = Body
      ' Attach the files specified.
      If (IsArray(Attach ments)) Then
      For Each Attachment In Attachments
      If (CStr(Attachmen t) <> "") Then .AddAttachment
      CStr(Attachment )
      Next
      Else
      If (CStr(Attachmen ts) <> "") Then .AddAttachment
      CStr(Attachment s)
      End If

      ' Release the email.
      .Send

      End With



      "Aaron [SQL Server MVP]" <ten.xoc@dnartr eb.noraa> wrote in message
      news:%23o8E9phY EHA.3716@TK2MSF TNGP10.phx.gbl. ..[color=blue]
      > What does your code look like? Have you tried using an external SMTP[/color]
      server[color=blue]
      > instead of local pickup?
      >
      > http://www.aspfaq.com/2026
      > http://www.aspfaq.com/2339
      >
      > --
      > http://www.aspfaq.com/
      > (Reverse address to reply.)
      >
      >
      >
      >
      >
      > "Alan Howard" <Xalan.howardX@ Xparadise.net.n zX> wrote in message
      > news:e2bqXBhYEH A.1656@TK2MSFTN GP09.phx.gbl...[color=green]
      > > Hi there,
      > >
      > > I can't seem to find any info on this error message that's generated[/color][/color]
      when[color=blue][color=green]
      > > sending email with CDO:
      > >
      > > "The pickup directory path is required and was not specified"
      > >
      > > Does anyone know whether the cdoSMTPServerPi ckupDirectory field of the
      > > Message object defaults and whether it's normal to have to set this[/color][/color]
      value[color=blue][color=green]
      > > explicitly. My W2K workstations and servers function OK without this
      > > setting, but one of the XP workstations is playing up. All SMTP
      > > directories
      > > are set to the default 'C:\inetpub\mai lroot\'.
      > >
      > > Thanks,
      > >
      > > Alan
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • richw3

        #4
        Re: CDO Error: &quot;The pickup directory path is required and was not specified&quot;

        [color=blue]
        > "The pickup directory path is required and was not specified"
        >[/color]
        checkout:

        [url]http://msdn.microsoft. com/library/default.asp?url =/library/en-us/cdosys/html/_cdosys_sending _or_posting_usi ng_the_pickup_d irectory.asp[/url


        -
        richw
        -----------------------------------------------------------------------
        Posted via http://www.codecomment s.co
        -----------------------------------------------------------------------

        Comment

        Working...