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 5 3164
Whatever server you're trying to relay through is probably denying the
relay. I suggest you ask in an IIS group such as
microsoft.publi c.inetserver.ii s.smtp_nntp.
--
Ray at work
Microsoft ASP/ASP.NET MVP
"Stuart Palmer" <tr**********@y oucant.com> wrote in message
news:35******** *****@individua l.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
Could I see the code your using? Mostly to the configuration object.
<ro***@admissio npros.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. . Could I see the code your using? Mostly to the configuration object.
Rocky,
Here you go.
--------------------
Set objSendMail = CreateObject("C DO.Message")
objSendMail.Sub ject = "CDO Test"
objSendMail.Fro m = "Stu Test<st*@test.c om>"
objSendMail.To = St*@MyDomain.co m
objSendMail.Tex tBody = "CDO Test"
objSendMail.Con figuration.Fiel ds.Item
("http://schemas.microso ft.com/cdo/configuration/sendusing") = 2
'Name or IP of remote SMTP server
objSendMail.Con figuration.Fiel ds.Item
("http://schemas.microso ft.com/cdo/configuration/smtpserver") = "127.0.0.1"
'Server port1
objSendMail.Con figuration.Fiel ds.Item
("http://schemas.microso ft.com/cdo/configuration/smtpserverport" ) = 25
objSendMail.Con figuration.Fiel ds.Update
objSendMail.Sen d
--------------
The mail gets created and then just sits in the queue and does not a lot
more.
Thx for your help.
Stu
On Mon, 24 Jan 2005 12:44:54 -0000, "Stuart Palmer"
<tr**********@y oucant.com> wrote: <ro***@admissi onpros.com> wrote in message news:11******* *************** @f14g2000cwb.go oglegroups.com. .. Could I see the code your using? Mostly to the configuration object.
Rocky, Here you go.
-------------------- Set objSendMail = CreateObject("C DO.Message") objSendMail.Sub ject = "CDO Test" objSendMail.Fro m = "Stu Test<st*@test.c om>" objSendMail.To = St*@MyDomain.co m objSendMail.Tex tBody = "CDO Test" objSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/sendusing") = 2 'Name or IP of remote SMTP server objSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/smtpserver") = "127.0.0.1" 'Server port1 objSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/smtpserverport" ) = 25 objSendMail.Con figuration.Fiel ds.Update objSendMail.Sen d --------------
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.c om" correctly, that's the most common reason
email sits in the queue.
Jeff
------------->8-----------
Also, make sure the system can resolve the MX
record of "MyDomain.c om" 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*********@zi na.com> wrote in message
news:41******** *********@msnew s.microsoft.com ... On Mon, 24 Jan 2005 12:44:54 -0000, "Stuart Palmer" <tr**********@y oucant.com> wrote:
<ro***@admissi onpros.com> wrote in message news:11******* *************** @f14g2000cwb.go oglegroups.com. .. Could I see the code your using? Mostly to the configuration object.
Rocky, Here you go.
-------------------- Set objSendMail = CreateObject("C DO.Message") objSendMail.Sub ject = "CDO Test" objSendMail.Fro m = "Stu Test<st*@test.c om>" objSendMail.To = St*@MyDomain.co m objSendMail.Tex tBody = "CDO Test" objSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/sendusing") = 2 'Name or IP of remote SMTP server objSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/smtpserver") =
"127.0.0.1" 'Server port1 objSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/smtpserverport" ) = 25 objSendMail.Con figuration.Fiel ds.Update objSendMail.Sen d --------------
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.c om" correctly, that's the most common reason email sits in the queue.
Jeff This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 (mail($To,$Subject,$Body,$Headers,$Param))
{
print("The message was sent to:<p>$HTML_BCC<br><hr><h3>Completed
OK</h3><p>\n");
}
else
|
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 mails).
Instead, I'd like to throw all my mails into the mail queue. I'm running
sendmail on freeBSD and imagine that I should be able to use the exec()
command.
|
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 is:
MailMessage mail = new MailMessage();
mail.Form = "someone@fromsite.com";
mail.To = "someone@tosite.com";
mail.Body = "test";
mail.Suject = "test";
SmtpMail.Server.Insert(0, "127.0.0.1"); //I also tried
SmptMail.Server.Insert(0,...
|
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 being sent to the
C:\Inetpub\Mailroot\Queue folder while I am online, but are not sent on. If
I open the files in this folder, I can manually forward the messages, but
would prefer to do it automatically.
Can anyone advise?
|
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 Connection live until the IIS
server is done sending the email, as evidenced by the .EML file leaving the
Queue folder.
I can send email using C# and SMTP, but keep closing the connection before
| |
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 the members of my organization. I think my problem
is incorrectly setting the settings on my server or an authentication
problem. Here is the code I have written to send a test message:
-----Code Begins: Sensitive Information Replaced by -----...
|
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 "127.0.0.1".
4. Authentication: "Anonymous access" only.
5. Outbound connection listen to TCP 25.
Besides,
|
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 e-mails OK, my firewall ports 25
and 53 are open (using isa server 2004 as firewall), the local machine (Win
XP Pro SP2) firewall is off.
My code creates the e-mail messages OK, but they get stuck in the queue
folder and never go out. I've spent the...
|
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 suggestions ?
Thanks,
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |