Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > cdo mail getting stuck in queue

Reply
Thread Tools

cdo mail getting stuck in queue

 
 
Stuart Palmer
Guest
Posts: n/a
 
      01-17-2005
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


 
Reply With Quote
 
 
 
 
Ray Costanzo [MVP]
Guest
Posts: n/a
 
      01-17-2005
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" <> wrote in message
news:...
> 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
>
>



 
Reply With Quote
 
 
 
 
rocky@admissionpros.com
Guest
Posts: n/a
 
      01-21-2005
Could I see the code your using? Mostly to the configuration object.

 
Reply With Quote
 
Stuart Palmer
Guest
Posts: n/a
 
      01-24-2005
<> wrote in message
news: 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<>"
objSendMail.To =
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


 
Reply With Quote
 
Jeff Cochran
Guest
Posts: n/a
 
      01-24-2005
On Mon, 24 Jan 2005 12:44:54 -0000, "Stuart Palmer"
<> wrote:

><> wrote in message
>news: 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<>"
> objSendMail.To =
> 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
 
Reply With Quote
 
Stuart Palmer
Guest
Posts: n/a
 
      01-25-2005
------------->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" <> wrote in message
news:...
> On Mon, 24 Jan 2005 12:44:54 -0000, "Stuart Palmer"
> <> wrote:
>
> ><> wrote in message
> >news: 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<>"
> > objSendMail.To =
> > 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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Program blocked in Queue.Queue.get and Queue.Queue.put Kris Python 0 01-04-2012 03:46 PM
what is ("http://schemas.microsoft.com/cdo/configuration/sendusing") doing in CDO uofs76@yahoo.com ASP General 0 02-07-2007 01:09 PM
Is Queue.Queue.queue.clear() thread-safe? Russell Warren Python 4 06-27-2006 03:03 PM
cdo.message emails stuck in queue engwar1@yahoo.com ASP General 4 10-22-2005 10:01 PM
CDO for Windows 2000 vs CDO for Exchange 2000 ASP .Net 2 07-11-2003 12:31 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57