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]" <te*****@dnartr eb.noraa> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
What does your code look like? Have you tried using an external SMTP
server instead of local pickup?
http://www.aspfaq.com/2026
http://www.aspfaq.com/2339
--
http://www.aspfaq.com/
(Reverse address to reply.)
"Alan Howard" <Xa***********@ Xparadise.net.n zX> wrote in message
news:e2******** ******@TK2MSFTN GP09.phx.gbl... 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