473,785 Members | 2,641 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CDO email in Windows 2003

I am having trouble sending a form email on a remote W 2003 server.

The test script I am using is as follows
<%@ Language=VBScri pt %>
<% Set objMessage = CreateObject("C DO.Message")
objMessage.From = "me"
objMessage.Subj ect = "test"
objMessage.To = "me@me.com"
objMessage.Text Body = "testing"
objMessage.Conf iguration.Field s.Item("http://schemas.microso ft.com/cdo/configuration/sendusing")
= 2
objMessage.Conf iguration.Field s.Item("http://schemas.microso ft.com/cdo/configuration/smtpserver")
= "mySMTPserv er"
objMessage.Conf iguration.Field s.Item("http://schemas.microso ft.com/cdo/configuration/smtpserverport" )
= 25
objMessage.Conf iguration.Field s.Update
objMessage.Send
%>

I have been on this all morning and i'm well fed up.

Is there something staring me in the face??

Jul 22 '05 #1
12 5488
<pi***@smorley. co.uk> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. .
I am having trouble sending a form email on a remote W 2003 server.

The test script I am using is as follows
<%@ Language=VBScri pt %>
<% Set objMessage = CreateObject("C DO.Message")
objMessage.From = "me"
objMessage.Subj ect = "test"
objMessage.To = "me@me.com"
objMessage.Text Body = "testing"
objMessage.Conf iguration.Field s.Item("http://schemas.microso ft.com/cdo/confi
guration/sendusing") = 2
objMessage.Conf iguration.Field s.Item("http://schemas.microso ft.com/cdo/confi
guration/smtpserver") = "mySMTPserv er"
objMessage.Conf iguration.Field s.Item("http://schemas.microso ft.com/cdo/confi
guration/smtpserverport" ) = 25
objMessage.Conf iguration.Field s.Update
objMessage.Send
%>

I have been on this all morning and i'm well fed up.

Is there something staring me in the face??


Is "mySMTPserv er" actually the name of your SMTP server?
Jul 22 '05 #2
'course it aint! it's mail.whatever.c o.uk I checked it with my
service provider.

Jul 22 '05 #3

pi***@smorley.c o.uk wrote:
'course it aint! it's mail.whatever.c o.uk I checked it with my
service provider.


When you say you can't get it to work properly, what happens? What
error messages do you get?

Jul 22 '05 #4
On my service provider, I merely get the "computer says no" message -
ie This page cannot be displayed - no explanation.

However, when I try it on my IIS server on my PC where I test sites, I
get the following:-
Error Type:
(0x8004020E)
Cannot modify or delete an object that was added using the COM+ Admin
SDK
/mepdynamic/test.asp, line 11

Line 11 being "objMessage.Sen d"

Jul 22 '05 #5

http://www.powerasp.com/content/new/...ail_cdosys.asp

<pi***@smorley. co.uk> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. .
I am having trouble sending a form email on a remote W 2003 server.

The test script I am using is as follows
<%@ Language=VBScri pt %>
<% Set objMessage = CreateObject("C DO.Message")
objMessage.From = "me"
objMessage.Subj ect = "test"
objMessage.To = "me@me.com"
objMessage.Text Body = "testing"
objMessage.Conf iguration.Field s.Item("http://schemas.microso ft.com/cdo/configuration/sendusing")
= 2
objMessage.Conf iguration.Field s.Item("http://schemas.microso ft.com/cdo/configuration/smtpserver")
= "mySMTPserv er"
objMessage.Conf iguration.Field s.Item("http://schemas.microso ft.com/cdo/configuration/smtpserverport" )
= 25
objMessage.Conf iguration.Field s.Update
objMessage.Send
%>

I have been on this all morning and i'm well fed up.

Is there something staring me in the face??

Jul 22 '05 #6
Kyle. Thanks. I have emailed the service provider to find out if they
require outgoing authentication. What a pain. I am developing this
for a client and all the passwords, SMTP settings etc will have to be
changed once it goes up on their site.

Grrrrr!

Jul 22 '05 #7
Well it turns out that CDO is hugely variable!

My service providers have provided me with a CDO script that works as
follows:-

<%

Set objMessage = CreateObject("C DO.Message")
objMessage.Subj ect = "Example CDO Message"
objMessage.Send er = "go************ ***@goodairfiel dguide.co.uk"
objMessage.To = "di************ **@hostway.co.u k" objMessage.Text Body =
"This is some sample message text."

'==This section provides the configuration information for the remote
SMTP server. '==Normally you will only change the server name or IP.

objMessage.Conf iguration.Field s.Item _
("http://schemas.microso ft.com/cdo/configuration/sendusing") = 2

'Name or IP of Remote SMTP Server objMessage.Conf iguration.Field s.Item
_
("http://schemas.microso ft.com/cdo/configuration/smtpserver") =
"localhost"

'Server port (typically 25) objMessage.Conf iguration.Field s.Item _
("http://schemas.microso ft.com/cdo/configuration/smtpserverport" ) = 25

objMessage.Conf iguration.Field s.Update

'==End remote SMTP server configuration section==

objMessage.Send

%>

You will see that the remote config is set to "localhost" - this can
also be the URL.

BUT. you need a working email address at objMessage.send er in order
for it to work.

Why are there so many different ways none of which work on my server?

Microsoft, are you not supposed to make things easier?

Anyway, I still can't get it to work with my form emailer script. Has
anyine got one that works with CDO?

Jul 22 '05 #8
I just had to deal with CDO on XP and 2003 because increased security
stopped the way I was using it from working. However, I've come in the
middle of this thread and don't know what your original problem was. What
error messages are you getting?

--
Mark Schupp

<pi***@smorley. co.uk> wrote in message
news:11******** ************@g4 4g2000cwa.googl egroups.com...
Well it turns out that CDO is hugely variable!

My service providers have provided me with a CDO script that works as
follows:-

<%

Set objMessage = CreateObject("C DO.Message")
objMessage.Subj ect = "Example CDO Message"
objMessage.Send er = "go************ ***@goodairfiel dguide.co.uk"
objMessage.To = "di************ **@hostway.co.u k" objMessage.Text Body =
"This is some sample message text."

'==This section provides the configuration information for the remote
SMTP server. '==Normally you will only change the server name or IP.

objMessage.Conf iguration.Field s.Item _
("http://schemas.microso ft.com/cdo/configuration/sendusing") = 2

'Name or IP of Remote SMTP Server objMessage.Conf iguration.Field s.Item
_
("http://schemas.microso ft.com/cdo/configuration/smtpserver") =
"localhost"

'Server port (typically 25) objMessage.Conf iguration.Field s.Item _
("http://schemas.microso ft.com/cdo/configuration/smtpserverport" ) = 25

objMessage.Conf iguration.Field s.Update

'==End remote SMTP server configuration section==

objMessage.Send

%>

You will see that the remote config is set to "localhost" - this can
also be the URL.

BUT. you need a working email address at objMessage.send er in order
for it to work.

Why are there so many different ways none of which work on my server?

Microsoft, are you not supposed to make things easier?

Anyway, I still can't get it to work with my form emailer script. Has
anyine got one that works with CDO?

Jul 22 '05 #9
It's sorted now as far as the CDO part is concerned but I am still
having problems merging it with a form emailer script.

My service providers are being very helpful as I don't get a detailed
error message from the remote server and I cannot test it on mine as
all te settings are different for a local server.

This makes testing scripts very difficult and time consuming for
everyone.

I really think a company as big as Microsoft could come up with a CDO
mailer which would work the same on different computers using the same
platform.

GRRRR!!!!!

Jul 22 '05 #10

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

Similar topics

11
3765
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows 2003 Server or ADO or ODBC issue, I am posting this on all of the three newsgroups. That's the setup: Windows 2003 Server with IIS and ASP.NET actiavted Access 2002 mdb file (and yes, proper rights are set on TMP paths and path,
2
15229
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000 Personal disk from the SQL Server 2000 Enterprise kit as this is reported here on the MSDN web site to be the version that is supported on Windows XP. In fact so many of you kind people confess to having succeeded in doing it. I have tried...
6
3483
by: mike | last post by:
I have created a side application in VB.NET which reads rows from a DB and builds an email message. when i have a long string the the mailmessage.body or the mailmessage, it puts in an "!<linefeed><space>" at about every 980th space. I have confirmed that these characters are not in the string or the message body before the email is sent. Has anyone seen this or have any thoughts? Thanks
5
394
by: John | last post by:
Having a problem sending emails through vb.net. Our inhouse software automatically sends an email to the programming staff whenever an error is encountered. This code works just fine on machines that are windows 2000 based. We recently upgraded from Outlook 2000 to Outlook 2003, and it still works. We have one machine with XP service pack 1. It works fine there. This also was upgraded from outlook 200 to outlook 2003.
7
3214
by: lvpaul | last post by:
Hallo ! I am using IIS-Windows-Authentication in my intranet (web.config <authentication mode="Windows" /> <identity impersonate="true" /> How can I get the users (client) IP-Address ? I think the username can be read with user.identity.name.
1
1610
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...
1
2957
by: Benny Ng | last post by:
Dear All, Now I just finished my winform application. And a part of that is to send email reminder to the users. It's working fine in the server that with SMTP service in Windows 2003. But now the user wants to used the Linux server to send email messages. (already installed the SMTP service in that). Unfortunatelly one error shown after the sending funciton invoked. It shows "Pickup directory is not existed,x,x,x,,"
3
2859
by: Siv | last post by:
Hi, A little while ago I wrote a small program that allowed the user to view products from a database. The database holds the details of the products which can be viewed via a form and additionally pictures of the product are stored in an images subfolder and the database holds the file name of the relevant picture. The user can then click a button to display the picture in a pop-up window and also another button to email the potential...
0
2735
by: Velvet | last post by:
Our staging server has several web sites that send emails. Most of the sites can send email but one of them is gettting the following message when HTML formatted email is sent. We created a test page and verifyied that the exact same code works on another website but not this one. The interesting thing is that the email is in fact sent and recieved by the recipient even though the .net component is returning this error. It doesn't...
0
9645
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
10325
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, 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...
1
10091
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
9950
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
8972
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
7499
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
6740
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2879
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 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...

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.