473,503 Members | 6,385 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.Fields.Item(sch & "smtpserver") = "<enter_mail.server_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 5662
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********@NO-SPAM.kingswoodweb.net> wrote in message
news:os*********************@news-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.Fields.Item(sch & "smtpserver") = "<enter_mail.server_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********@NO-SPAM.kingswoodweb.net> wrote in message
news:zu*********************@news-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********@NO-SPAM.kingswoodweb.net> wrote in message
news:e5*********************@news-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
3939
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...
3
3580
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...
1
1357
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...
13
3181
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...
6
2893
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...
1
1601
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...
6
4735
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...
0
3411
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...
6
1969
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...
0
7194
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
7070
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...
0
7267
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
7316
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
6976
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
7449
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
4666
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
3160
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...
1
729
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.