473,656 Members | 2,777 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Windows 2003 Server / CDO Emails - ASP FAQ

Lo all

Ok, had problems sending emails for the first time on the new server setup
this evening, found the ASP FAQ article :

http://www.aspfaq.com/show.asp?id=2026

Which offered an answer to my problem - however - I then got another error -
ASP FAQ once again resolved this :

http://www.aspfaq.com/show.asp?id=2305

In this scenario changing the 2 to a 1 solved the problem and the email was
sent...

So, at the moment I am able to send emails using my own server - I then
wanted to check that the CDO way of sending emails was going to work on a
hosting companies server that I also use - I FTP'd the testemail.asp file
up - ran it - bingo - got an email - now I'm wondering WHY! I had left the
server ip as it was for my own network - I find it hard to believe that just
by pure luck their email server is using the same IP as mine, and as it was
a local IP (192.168 etc) - it wasn't going to resolve any other
way...so...do I actually need this :

cdoConfig.Field s.Item(sch & "smtpserver ") = "<enter_mail.se rver_here>"

Or can it be left out - or - did it get ignored because of the 2 being set
to a 1...

I have no idea what these values actually mean so any help would be
appreciated - my knowledge of all things SMTP is slim to none - and we just
waved goodbye to slim.... :o)

Thanks in advance for any help - oh and thanks for www.aspfaq.com for those
great articles... :o)

Regards

Rob

Jul 19 '05 #1
6 5666
One of the settings means pickup, so the server is ignored (since it just
dumps it locally, where the *local* SMTP server picks it up; it doesn't get
sent to an SMTP server).

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Rob Meade" <ro********@N O-SPAM.kingswoodw eb.net> wrote in message
news:os******** *************@n ews-text.cableinet. net...
Lo all

Ok, had problems sending emails for the first time on the new server setup
this evening, found the ASP FAQ article :

http://www.aspfaq.com/show.asp?id=2026

Which offered an answer to my problem - however - I then got another error - ASP FAQ once again resolved this :

http://www.aspfaq.com/show.asp?id=2305

In this scenario changing the 2 to a 1 solved the problem and the email was sent...

So, at the moment I am able to send emails using my own server - I then
wanted to check that the CDO way of sending emails was going to work on a
hosting companies server that I also use - I FTP'd the testemail.asp file
up - ran it - bingo - got an email - now I'm wondering WHY! I had left the server ip as it was for my own network - I find it hard to believe that just by pure luck their email server is using the same IP as mine, and as it was a local IP (192.168 etc) - it wasn't going to resolve any other
way...so...do I actually need this :

cdoConfig.Field s.Item(sch & "smtpserver ") = "<enter_mail.se rver_here>"

Or can it be left out - or - did it get ignored because of the 2 being set
to a 1...

I have no idea what these values actually mean so any help would be
appreciated - my knowledge of all things SMTP is slim to none - and we just waved goodbye to slim.... :o)

Thanks in advance for any help - oh and thanks for www.aspfaq.com for those great articles... :o)

Regards

Rob

Jul 19 '05 #2
"Aaron Bertrand [MVP]" wrote ...
One of the settings means pickup, so the server is ignored (since it just
dumps it locally, where the *local* SMTP server picks it up; it doesn't get sent to an SMTP server).


Hi Aaron,

Thanks for the reply and info.

Out of curiousity - I've always used CDONTS - just assumed that was the
right way to go etc - my application wont allow me to use this now on my
development box, but will on the live box (hosted elsewhere) - therefore
would it be prudent to change all of my code to use CDO instead of CDONTS?
Any issues with this - ie, will CDO *aways* work - or do I need to perhaps
keep the other version in there too and check somehow to determine which to
use?

Any info appreciated - sorry for the lateness of my reply...

Regards

Rob
Jul 19 '05 #3
CDO is by far the better option. The only reason it wouldn't work is if you
are running NT 4.0 server anywhere - CDO was first included with Windows
2000.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Rob Meade" <ro********@N O-SPAM.kingswoodw eb.net> wrote in message
news:zu******** *************@n ews-text.cableinet. net...
"Aaron Bertrand [MVP]" wrote ...
One of the settings means pickup, so the server is ignored (since it just dumps it locally, where the *local* SMTP server picks it up; it doesn't get
sent to an SMTP server).


Hi Aaron,

Thanks for the reply and info.

Out of curiousity - I've always used CDONTS - just assumed that was the
right way to go etc - my application wont allow me to use this now on my
development box, but will on the live box (hosted elsewhere) - therefore
would it be prudent to change all of my code to use CDO instead of CDONTS?
Any issues with this - ie, will CDO *aways* work - or do I need to perhaps
keep the other version in there too and check somehow to determine which

to use?

Any info appreciated - sorry for the lateness of my reply...

Regards

Rob

Jul 19 '05 #4
"Aaron Bertrand [MVP]" wrote ...
CDO is by far the better option. The only reason it wouldn't work is if you are running NT 4.0 server anywhere - CDO was first included with Windows
2000.


Hi Aaron,

Many thanks for your reply.

I've just had a quick look at the server variables and it doesn't appear
that there's a way to retrieve the OS etc being used...any idea how to
configure my small script to use CDONTS if its NT or CDO if its 2000
upwards?

Regards

Rob

Jul 19 '05 #5
http://www.aspfaq.com/2140

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Rob Meade" <ro********@N O-SPAM.kingswoodw eb.net> wrote in message
news:e5******** *************@n ews-text.cableinet. net...
"Aaron Bertrand [MVP]" wrote ...
CDO is by far the better option. The only reason it wouldn't work is if

you
are running NT 4.0 server anywhere - CDO was first included with Windows
2000.


Hi Aaron,

Many thanks for your reply.

I've just had a quick look at the server variables and it doesn't appear
that there's a way to retrieve the OS etc being used...any idea how to
configure my small script to use CDONTS if its NT or CDO if its 2000
upwards?

Regards

Rob

Jul 19 '05 #6
"Aaron Bertrand [MVP]" wrote ...
http://www.aspfaq.com/2140


You = Star

*twinkle*

:o)

Cheers mate,

Rob
Jul 19 '05 #7

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

Similar topics

8
3947
by: Boris | last post by:
Could someone please tell me if I can use CDONTS in W 2003 Server environment to send emails the same way it is used in W2K Server. I have heard that CDONTS is no longer available in W 2003 Server and if so, how can I send emails from ASP page... Many thanks in advance
3
3588
by: Andyza | last post by:
My prod box consists of the following: - Windows 2003 Server - Exchange 2003 If I use cdoConfig to send emails from my .asp application do I need to include the following typelib on my .asp page if I'm running Exchange 2003: <!--METADATA TYPE="typelib" UUID="CD000000-8B95-11D1-82DB-00C04FB1625D" NAME="CDO for Windows 2000 Library" -->
1
1365
by: Jerry | last post by:
Hii some of my sites which is working perfectly on Windows 2000 But when i tried the same thing from Windows 2003, it gives me error.. I am using IIS 6.0 By the way i am getting an error 80005000 login error. Any help on this will be greatly appreciated..
13
3211
by: joe215 | last post by:
I want my users to send emails from a Windows app that I am developing in Visual Basic.NET 2003. I found a good example of sending email to a SMTP server using the SmtpMail class. However, using this, it seems, that the user must install IIS on their computer. Isn't there a class that will detect whatever mail server is available on a computer and use that? How do I create this functionality without having the user add any other...
6
2904
by: Brian M | last post by:
I have an ASP.NET application using .NET Framework 1.1 running on a Windows 2003 server. The application uses SMTP to send emails. This application was moved from an IIS 5 machine where it worked fine. However, now on the IIS 6 server the email notification does not work. The application is using System.Web.Mail.MailMessage. The error and trace is: System.IO.FileNotFoundException: The specified module could not be found. at...
1
1604
by: Jozef | last post by:
Hello, I have a client that just switched to Windows 2003 server. Their website has always run fine under Windows 2000, using an email program queue_manager.exe to send order and support emails (sending a receipt to the sender). This seems to work under Windows 2003, but won't send the email. I suspect it's a security configuration issue, but can't seem to pin point it (since I am a novice with 2003 server). The server also has...
6
4750
by: AMP | last post by:
I am trying to write a windows sevice that will send emails. The data is stored in a database and the service scans the database for new entries It work well as a stardard windows app, but when you make is a service it all works except it will not sent the emails Attached is the public sub that should run, its the same code that in the stardard winform, both app's are using Threads
0
3428
by: =?Utf-8?B?Q2hhcmxlcw==?= | last post by:
Like many people, I normally use Yahoo! Mail via the web and like to keep all my emails stored on the Yahoo! server. However sometimes I can’t get access to a PC/the web and I download my emails to a PDA/palmtop via POP3. The PDA uses Windows Mobile software. Since using the PDA, I have had the problem of emails disappearing from the Yahoo! server. However I think I now understand how to avoid this. It seems that Windows Mobile is...
6
1978
by: =?Utf-8?B?UmljaA==?= | last post by:
How to suppress the Outlook 2003 security prompts from VB2005. When I tried to look at the body of a message or any other part of an outlook mailItem -- I get these annoying security prompts. I have to loop through several emails a day. Is there some code for suppressing this? I saw some articles about a product called Outlook Redemption which supposed suppresses these messages. I have not tried it. Anyone know how to use it? ...
0
8382
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8297
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,...
1
8498
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,...
0
8600
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 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...
0
7311
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
isladogs
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...
0
4150
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...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
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 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.