473,386 Members | 2,042 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

SmtpEmail problems - Could not access CDO.Message object

Hi,

I am using a function which sends email and it accepts all the paramaters
like from, to email addresses, subject and message. I placed this function
in one of the classes in an assembly and calling it as follows

Dim objTest as Test.Class
objTest.SendMail(Parameter list)

This was giving out the error message "Could not access CDO.Message object"

It is working fine on our development server(Win200 Adv) but throwing the
above errors on production server(Win 2003)

One more thing is that this code works fine when placed in script block, but
doesn't work when placed in the code behind file.

Can anyone please guide me as to what is going wrong.

Freddy
Nov 18 '05 #1
2 890
Dear Freddy,

In your production server check the SMTP Server Name and its permissions.

Basically, you wil be able to send mails to users in the same domain. For sending email to other domains, you need to configure the SMTP Server to enable Port 25 open to the internet world.

Check with your administrator regarding SMTP Server

Hope it helps.

"Freddy" wrote:
Hi,

I am using a function which sends email and it accepts all the paramaters
like from, to email addresses, subject and message. I placed this function
in one of the classes in an assembly and calling it as follows

Dim objTest as Test.Class
objTest.SendMail(Parameter list)

This was giving out the error message "Could not access CDO.Message object"

It is working fine on our development server(Win200 Adv) but throwing the
above errors on production server(Win 2003)

One more thing is that this code works fine when placed in script block, but
doesn't work when placed in the code behind file.

Can anyone please guide me as to what is going wrong.

Freddy

Nov 18 '05 #2
Thanks.
"ranganh" <ra*****@discussions.microsoft.com> wrote in message
news:A6**********************************@microsof t.com...
Dear Freddy,

In your production server check the SMTP Server Name and its permissions.

Basically, you wil be able to send mails to users in the same domain. For sending email to other domains, you need to configure the SMTP Server to
enable Port 25 open to the internet world.
Check with your administrator regarding SMTP Server

Hope it helps.

"Freddy" wrote:
Hi,

I am using a function which sends email and it accepts all the paramaters like from, to email addresses, subject and message. I placed this function in one of the classes in an assembly and calling it as follows

Dim objTest as Test.Class
objTest.SendMail(Parameter list)

This was giving out the error message "Could not access CDO.Message object"
It is working fine on our development server(Win200 Adv) but throwing the above errors on production server(Win 2003)

One more thing is that this code works fine when placed in script block, but doesn't work when placed in the code behind file.

Can anyone please guide me as to what is going wrong.

Freddy

Nov 18 '05 #3

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

Similar topics

4
by: David | last post by:
Hi, I want to work with Access 2002. I will need to be able to distribute my application to users that may still have access 2000 on their computers. I know access 2002 has a function that...
26
by: jamesbeswick | last post by:
I've been using Access since version 97 and I've migrated to 2003. I've noticed a substantial number of strange ActiveX/OLE and code corruption problems when writing databases. The only solution...
3
by: kathyk | last post by:
Hi All, I am using Access 2003 on machines with windows 2000 and XP. The problem I'm having started only after we got a new image for our PC's. This database app has been around for awhile and...
10
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ...
3
by: The One | last post by:
Have created a form to pop up with 2 option I then wish to write the text that is in the option button chose back to the original form using the code below but it gives me an exception error so...
2
by: Suzanne | last post by:
Hi all, I'm reposting this message as I'm experiencing this problem more and more frequently : I really hope someone out there can help me as I've been tearing my hair out on this one for a...
6
by: Don | last post by:
I'm having problems working with a streamwriter object. After closing the streamwriter and setting it to Nothing, I try to delete the file it was writing to, but I always get the following error...
11
by: Steve Smith | last post by:
I have written a winforms application that launches approximately 150 threads with Thread.ThreadStart() Each thread uses CDO 1.21 to logon to a different Exchange mailbox and send/receive a...
1
by: flowstudioLA | last post by:
I have a template class object that I use as a mesaging queue between threads. I use it as a static object that I initialize like so: foo.h class foo{ static LFQueue<const char*,100lfqMyQueue;...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...

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.