SmtpEmail problems - Could not access CDO.Message object

  • Thread starter Thread starter Freddy
  • Start date Start date
F

Freddy

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
 
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.
 
Thanks.


ranganh said:
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.
 
Back
Top