Link to home
Create AccountLog in
Web Development

Web Development

--

Questions

--

Followers

Top Experts

Avatar of 1cell
1cell🇦🇫

SMTP Messages stuck in \pickup
Title says it all.  I just reinstalled Windows 2k Server and I've got an ASP app using CDONTS for emails.  The emails get to c:\inetpub\mailroot\pickup and nothing happens.

What did I forget????

I have proven that SMTP is running without any issues.
There's not anything in Event Viewer.

I've read conflicting reports that I need Outlook 2000????

I could use some pointers to help solve this....

Thanks in advance.

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of rherguthrherguth🇺🇸

The Outlook 2000 issue is just a way to get the CDONTS.DLL file.  As long as you know that is on your server and registered, you shouldn't need Outlook.  CDONTS then uses the SMTP pickup directory, as you know.  So it sounds like the SMTP service isn't running or the directory the service is looking at is different from the one you're using.

Is there any error messages in the badmail directory or the event log?

Avatar of 1cell1cell🇦🇫

ASKER

cdonts.dll is in /system32
unregisted and reregistered it
smtp is running
it's the only smtp server on the system and it's pointed to c:\inetpub\mailroot

I'm wondering about the advanced delivery properties and whether I might have something screwed up in there.  I've tried just about everything I could think of.

I also opened port 25 on our firewall but it shouldn't matter as the firewall only blocks unsolicited inbound traffic

Avatar of 1cell1cell🇦🇫

ASKER

is the FQDN from the network that this server serves or is it the domain we get email services from?  what I mean is, our local domain or our internet domain???

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


CDONTS wonuldn't work on Windows 2000 server for virtual Simple Mail Transfer Protocol (SMTP) site other than the default site and ur server is have one Admin. site,So, it just simply create the mail in the default SMTP site's pickup folder.

Recode your applications to use CDO for Windows 2000. This object contains a field called cdoSMTPServerPickupDirectory, which can be set to the applicable Virtual SMTP site's mail folder path.


Avatar of 1cell1cell🇦🇫

ASKER

virenderpratap,

while recoding the application sounds like lots of fun this is something that was working before.

if you could show me a code example of what you mean by I'll try it.

This is what I have now...

<%
Set objCDOMailDNC = Server.CreateObject("CDONTS.NewMail")
objCDOMailDNC.From = "Sender"
objCDOMailDNC.To = strToSend
objCDOMailDNC.Subject = "Subject"
objCDOMailDNC.Send
%>

ofcourse ur code is fine but the thing is it will only work, where we have Default website only...

Here is sample Code which shows  how to use CDO fields ...and send message..(VBScript)

Dim iMsg
Dim iConf
Dim Flds
Set iMsg = CreateObject("CDO.Message")

Set iConf = iMsg.Configuration
Set Flds = iConf.Fields
Flds(cdoPostUsingMethod) = cdoPostUsingPickup
Flds(cdoSendUsingMethod) = cdoSendUsingPickup
Flds(cdoSMTPServerPickupDirectory) = "c:\inetpub\mailroot\pickup"
Flds(cdoPostUserReplyEmailAddress) = "something@drishinfo.com"
Flds(cdoPostEmailAddress)          = "something@drishinfo.com"
Flds(cdoSendUserReplyEmailAddress) = "something@drishinfo.com"
Flds(cdoSendEmailAddress)          = "something@drishinfo.com"
Flds(cdoAutoPromoteBodyParts)      = False
Flds(cdoFlushBuffersOnWrite)       = True

Flds.Update

Set Flds = Nothing

With iMsg
   .From         = "something@drishinfo.com"
   .CC           = "somethingOther@drishinfo.com"
   .Subject      = "Your lights are on, but no one is home"
   .TextBody     = "You left your lights on this morning."
   .Newsgroups   = "somewhere.general"

   ' Here, we post the message
   If g_bDebug Then
     MsgBox .GetStream.ReadText
   Else
    .Post
   End If

   ' Now, we ready the message for SMTP
   .To            = "SomeoneElse@Somewhere.drishinfo.com"
   
' Request an Mail Disposition Notification from Recipients
   .Fields(cdoDispositionNotificationTo) = "me@drishinfo.com"
   .Fields.Update

   If g_bDebug Then
     MsgBox .GetStream.ReadText
   Else
    .Send
   End If

End With
' ...
Set iMsg = Nothing


Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of 1cell1cell🇦🇫

ASKER

I get an error on

Flds(cdoPostUsingMethod) = cdoPostUsingPickup


Error Type:
ADODB.Fields (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/fmt/mailtest.asp, line 65


Avatar of 1cell1cell🇦🇫

ASKER

any feedback on this issue.  I've still not got it resolved.

Avatar of 1cell1cell🇦🇫

ASKER

I got this resolved.  I had to add full permissions for Everyone and System on the Mailroot Directory and all its subdirectories.  Once I did that everything worked as I had originally configured and scripted it.

I'll be requesting this question to be deleted but I appreciate the effort.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of rherguthrherguth🇺🇸

Close seems like a good idea vs a delete as this could probably help someone else.

ASKER CERTIFIED SOLUTION
Avatar of PashaModPashaMod

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

thanks for leaving it up... just solved the same problem for me! Too bad I didn't find it 7 hours ago :)

Web Development

Web Development

--

Questions

--

Followers

Top Experts

Web development includes all aspects of presenting content on intranets and the Internet, including delivery development, protocols, languages and standards, server software, browser clients, databases and multimedia generation.