473,508 Members | 2,357 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

cdo mail getting stuck in queue

Hi,
I am trying to get cdo.message working on my home development machine,
however, when I send it it appears to get stuck in the queue and never
actually gets sent.

If I don't have a domain SMTP set (either alias or remote) then I get an
error on page. But if I set these, the email just sits on the queue. I have
been trying to work it out from other posts and forums, aspFAQ etc but with
no joy.

Could someone supply a step by step guide to getting SMTP set up on a win2K
pro machine and how to get these mails out of my servers queue and into the
outside world so I can properly test code withing having to upload to my
hosts server and get the email back?

Many thx for any help.
Stu
Jul 22 '05 #1
5 3157
Whatever server you're trying to relay through is probably denying the
relay. I suggest you ask in an IIS group such as
microsoft.public.inetserver.iis.smtp_nntp.

--

Ray at work
Microsoft ASP/ASP.NET MVP
"Stuart Palmer" <tr**********@youcant.com> wrote in message
news:35*************@individual.net...
Hi,
I am trying to get cdo.message working on my home development machine,
however, when I send it it appears to get stuck in the queue and never
actually gets sent.

If I don't have a domain SMTP set (either alias or remote) then I get an error on page. But if I set these, the email just sits on the queue. I have been trying to work it out from other posts and forums, aspFAQ etc but with no joy.

Could someone supply a step by step guide to getting SMTP set up on a win2K pro machine and how to get these mails out of my servers queue and into the outside world so I can properly test code withing having to upload to my
hosts server and get the email back?

Many thx for any help.
Stu

Jul 22 '05 #2
Could I see the code your using? Mostly to the configuration object.

Jul 22 '05 #3
<ro***@admissionpros.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Could I see the code your using? Mostly to the configuration object.


Rocky,
Here you go.

--------------------
Set objSendMail = CreateObject("CDO.Message")
objSendMail.Subject = "CDO Test"
objSendMail.From = "Stu Test<st*@test.com>"
objSendMail.To = St*@MyDomain.com
objSendMail.TextBody = "CDO Test"
objSendMail.Configuration.Fields.Item
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
'Name or IP of remote SMTP server
objSendMail.Configuration.Fields.Item
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "127.0.0.1"
'Server port1
objSendMail.Configuration.Fields.Item
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objSendMail.Configuration.Fields.Update
objSendMail.Send
--------------

The mail gets created and then just sits in the queue and does not a lot
more.

Thx for your help.

Stu
Jul 22 '05 #4
On Mon, 24 Jan 2005 12:44:54 -0000, "Stuart Palmer"
<tr**********@youcant.com> wrote:
<ro***@admissionpros.com> wrote in message
news:11**********************@f14g2000cwb.googleg roups.com...
Could I see the code your using? Mostly to the configuration object.


Rocky,
Here you go.

--------------------
Set objSendMail = CreateObject("CDO.Message")
objSendMail.Subject = "CDO Test"
objSendMail.From = "Stu Test<st*@test.com>"
objSendMail.To = St*@MyDomain.com
objSendMail.TextBody = "CDO Test"
objSendMail.Configuration.Fields.Item
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
'Name or IP of remote SMTP server
objSendMail.Configuration.Fields.Item
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "127.0.0.1"
'Server port1
objSendMail.Configuration.Fields.Item
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objSendMail.Configuration.Fields.Update
objSendMail.Send
--------------

The mail gets created and then just sits in the queue and does not a lot
more.


First thing is that the SendUsing parameter should be "1" for the
local server, which you're using if you really are using the IP
address 127.0.0.1. If you're using a real IP not on the system and
just put 127.0.0.1 to show us you're sending to an IP, it would be a
"2".

Check the SMTP server logs as well. I don't remember off hand if CDO
code has the issue, but putting the IP address in brackets is required
for many SMTP settings. Also, make sure the system can resolve the MX
record of "MyDomain.com" correctly, that's the most common reason
email sits in the queue.

Jeff
Jul 22 '05 #5
------------->8-----------
Also, make sure the system can resolve the MX
record of "MyDomain.com" correctly, that's the most common reason
email sits in the queue.
------------->8-----------

How do I do this? I read something about a smart host in one setting but
don't knwo wat value to put in this.

Thx
Stu

"Jeff Cochran" <je*********@zina.com> wrote in message
news:41*****************@msnews.microsoft.com...
On Mon, 24 Jan 2005 12:44:54 -0000, "Stuart Palmer"
<tr**********@youcant.com> wrote:
<ro***@admissionpros.com> wrote in message
news:11**********************@f14g2000cwb.googleg roups.com...
Could I see the code your using? Mostly to the configuration object.


Rocky,
Here you go.

--------------------
Set objSendMail = CreateObject("CDO.Message")
objSendMail.Subject = "CDO Test"
objSendMail.From = "Stu Test<st*@test.com>"
objSendMail.To = St*@MyDomain.com
objSendMail.TextBody = "CDO Test"
objSendMail.Configuration.Fields.Item
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
'Name or IP of remote SMTP server
objSendMail.Configuration.Fields.Item
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "127.0.0.1" 'Server port1
objSendMail.Configuration.Fields.Item
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objSendMail.Configuration.Fields.Update
objSendMail.Send
--------------

The mail gets created and then just sits in the queue and does not a lot
more.


First thing is that the SendUsing parameter should be "1" for the
local server, which you're using if you really are using the IP
address 127.0.0.1. If you're using a real IP not on the system and
just put 127.0.0.1 to show us you're sending to an IP, it would be a
"2".

Check the SMTP server logs as well. I don't remember off hand if CDO
code has the issue, but putting the IP address in brackets is required
for many SMTP settings. Also, make sure the system can resolve the MX
record of "MyDomain.com" correctly, that's the most common reason
email sits in the queue.

Jeff

Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
52080
by: Pierre Jelenc | last post by:
I use mail() for a musician's mailing list script that suddenly started having problems after many months of working flawlessly. The code fragment is: if...
12
3900
by: bonfils | last post by:
I believe this question has been asked before, but I haven't found the solution to it. I've given up on the php mail() function (doesn't work fast enough for sending large amounts of HTML...
4
3449
by: Shawn Zheng | last post by:
I have a problem with SmtpMail.Send. the message sent by SmtpMail.Send stuck in Inetpub\mailroot\Queue folder could not be sent out. The SMTP server is in Windows 2000 server. the code that I used...
0
4463
by: cashdeskmac | last post by:
I am building a web app which is supposed to get the information from the user while offline, and then send this information once the user connects to the internet. So far, all of my e-mails are...
0
2052
by: Dan Sikorsky | last post by:
This is a C# console app using SMTP to send an email. The .EML file stays in the Queue folder because I close down the Internet Connection prematurely. What's the best way to keep the Internet...
1
8154
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
34
18142
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
1
1079
by: Robert Dufour | last post by:
I a m trying to send e-mails using the system.net.mail in framework2. I have IIS installed on my test box and the smtp service is started. I can use outlook on that box to send and receive my...
2
1358
by: onlineviewer | last post by:
Hello All, I am trying to send an email from a php page, but it always get stuck in the mail queue as the user that apache is running as, although i can send emails from php scripts Any...
0
7224
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7323
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7380
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7039
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7494
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4706
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.