Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDO Mail in Queue

Status
Not open for further replies.

Annelize

Programmer
Dec 17, 2004
45
GB
Hi

I'm sending CDO mail from a ASP page. Everything on the code side works perfect, but the sent mail doesn't reach the intended recipient. Instead it stays in the ../mailroot/queue. I'm running a virutal smtp server locally.

Any ideas guys?
Thanks in advance
 
Do you have an error, or a bounce-back message, that states that "The mail did not reach the intended recipients"? Have you checked the Blacklist to see if you are on it? Are your mail properties set correctly?

Just a few questions...

LF
 
No I didn't get any errors and all my mail properties are fine. The message doesn't even go to ..\mailroot\badmail but directly to the ..\mailroot\queue folder.

Code:
'CDO Configuration
set objConfig = CreateObject("CDO.Configuration")
set objFields = objConfig.Fields 
set objMessage = CreateObject("CDO.Message")
 
with objFields
 .Item(cdoSendUsingMethod) = cdoSendUsingPort
 .Item(cdoSMTPServerPort) = 25
 .Item(cdoSMTPServer) = "smtp.server.net"  'smtp server
 .Item(cdoSMTPAuthenticate) = cdoBasic
 .Item(cdoSendUserName) = "username"
 .Item(cdoSendPassword) = "password"
 .Update
end with
  
with objMessage
 .From = "address@mail.com"
 .To = "address@mail.com"
 .Subject = "Subject"
 .TextBody = "This is the message"
 .Send()
end with

set objMessage = nothing
set objConfig = nothing
set objFields = nothing
 
Hi

Is there any mail in the pickup folder?

thanks

Glen
Conception | Execution
 
I think your problem may be on the mail-server side of things. As I understand it, mail in the Queue folder should move out as soon as there is bandwidth todo so. Unless there are other files within that folder, then I would say that there is something wrong with your server.

LF


"As far as the laws of mathematics refer to reality, they are not certain; as far as they are certain, they do not refer to reality."--Albert Einstein
 
Thank you, I will have a look at that and let you know if I figure out anything.

A
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top