473,847 Members | 1,513 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sending Webmail through Exchange Server

I've built a small app that sends mail through our ISP's SMTP server but
when I try to send through my local exchange server I get CDO error. Does
webmail use SMTP or does it strictly rely on CDOmail. I don't want to use
the Outlook reference because outlook prompts each time program access it
and I have found a way to disable that. Can I use webmail with exchange?

Thanks
Nov 20 '05 #1
9 3229
I have tried both ways of sending email but no success.
1) using System.Web.Mail I get the error
Error: An unhandled exception of
type 'System.Web.Htt pException' occurred in system.web.dll
Additional information: Could not access 'CDO.Message'
object.
2) using CDO I get the error
Error: An unhandled exception of
type 'System.Runtime .InteropService s.COMException'
occurred in PrjESITest.exe
Additional information: The transport failed to connect
to the server.
Moreover the Method 1 does not give me any error if i do
not specify the SMTPServer or give a local IP address for
the SMTP Server.
But it works only on some machines.

Could anyone help me with this?

Regards,
Nina

Nov 20 '05 #2
Those are the error I got initially. Thanks

"Nina" <re******@hotma il.com> wrote in message
news:23******** *************** ******@phx.gbl. ..
I have tried both ways of sending email but no success.
1) using System.Web.Mail I get the error
Error: An unhandled exception of
type 'System.Web.Htt pException' occurred in system.web.dll
Additional information: Could not access 'CDO.Message'
object.
2) using CDO I get the error
Error: An unhandled exception of
type 'System.Runtime .InteropService s.COMException'
occurred in PrjESITest.exe
Additional information: The transport failed to connect
to the server.
Moreover the Method 1 does not give me any error if i do
not specify the SMTPServer or give a local IP address for
the SMTP Server.
But it works only on some machines.

Could anyone help me with this?

Regards,
Nina

Nov 20 '05 #3
I haven't had a real chance to test it, I'm fixing to try and implement but
you are using it with an exchange server? Thanks Brian.

"BrianDH" <Br*****@discus sions.microsoft .com> wrote in message
news:74******** *************** ***********@mic rosoft.com...
Method 2 is the one I use daily in many of my apps. Have you tried it and what erros do you get?
"B-Dog" wrote:
Those are the error I got initially. Thanks

"Nina" <re******@hotma il.com> wrote in message
news:23******** *************** ******@phx.gbl. ..
I have tried both ways of sending email but no success.
1) using System.Web.Mail I get the error
Error: An unhandled exception of
type 'System.Web.Htt pException' occurred in system.web.dll
Additional information: Could not access 'CDO.Message'
object.
2) using CDO I get the error
Error: An unhandled exception of
type 'System.Runtime .InteropService s.COMException'
occurred in PrjESITest.exe
Additional information: The transport failed to connect
to the server.
Moreover the Method 1 does not give me any error if i do
not specify the SMTPServer or give a local IP address for
the SMTP Server.
But it works only on some machines.

Could anyone help me with this?

Regards,
Nina


Nov 20 '05 #4
I am sorry I did not know where to post the new thread.
Got confused and posted the message here.

I get the following error

Error: An unhandled exception of
type 'System.Runtime .InteropService s.COMException'
occurred in PrjESITest.exe
Additional information: The transport failed to connect
to the server.
-----Original Message-----
Method 2 is the one I use daily in many of my apps. Have you tried it and what erros do you get?
"B-Dog" wrote:
Those are the error I got initially. Thanks

"Nina" <re******@hotma il.com> wrote in message
news:23******** *************** ******@phx.gbl. ..
> I have tried both ways of sending email but no success. > 1) using System.Web.Mail I get the error
> Error: An unhandled exception of
> type 'System.Web.Htt pException' occurred in system.web.dll > Additional information: Could not access 'CDO.Message' > object.
>
>
> 2) using CDO I get the error
> Error: An unhandled exception of
> type 'System.Runtime .InteropService s.COMException'
> occurred in PrjESITest.exe
> Additional information: The transport failed to connect > to the server.
>
>
> Moreover the Method 1 does not give me any error if i do > not specify the SMTPServer or give a local IP address for > the SMTP Server.
> But it works only on some machines.
>
> Could anyone help me with this?
>
> Regards,
> Nina
>


.

Nov 20 '05 #5
I can get it to work with my SMTP server fine but my question was how to
make it work with Exchange since it does not use CDO mail.

"BrianDH" <Br*****@discus sions.microsoft .com> wrote in message
news:15******** *************** ***********@mic rosoft.com...
No I am using the SMTP Server on our IIS Server. Exchange plays no part in this that I am aware of.
B

"B-Dog" wrote:
I haven't had a real chance to test it, I'm fixing to try and implement but you are using it with an exchange server? Thanks Brian.

"BrianDH" <Br*****@discus sions.microsoft .com> wrote in message
news:74******** *************** ***********@mic rosoft.com...
Method 2 is the one I use daily in many of my apps. Have you tried it
and what erros do you get?

"B-Dog" wrote:

> Those are the error I got initially. Thanks
>
> "Nina" <re******@hotma il.com> wrote in message
> news:23******** *************** ******@phx.gbl. ..
> > I have tried both ways of sending email but no success.
> > 1) using System.Web.Mail I get the error
> > Error: An unhandled exception of
> > type 'System.Web.Htt pException' occurred in system.web.dll
> > Additional information: Could not access 'CDO.Message'
> > object.
> >
> >
> > 2) using CDO I get the error
> > Error: An unhandled exception of
> > type 'System.Runtime .InteropService s.COMException'
> > occurred in PrjESITest.exe
> > Additional information: The transport failed to connect
> > to the server.
> >
> >
> > Moreover the Method 1 does not give me any error if i do
> > not specify the SMTPServer or give a local IP address for
> > the SMTP Server.
> > But it works only on some machines.
> >
> > Could anyone help me with this?
> >
> > Regards,
> > Nina
> >
>
>
>


Nov 20 '05 #6
So are you saying it works for you through your exchange server?

"BrianDH" <Br*****@discus sions.microsoft .com> wrote in message
news:96******** *************** ***********@mic rosoft.com...
OK my network guy just told me I was a dumb-A@!... SMTP does go thru Exchange.
Sorry

"BrianDH" wrote:
No I am using the SMTP Server on our IIS Server. Exchange plays no part in this that I am aware of.
B

"B-Dog" wrote:
I haven't had a real chance to test it, I'm fixing to try and implement but you are using it with an exchange server? Thanks Brian.

"BrianDH" <Br*****@discus sions.microsoft .com> wrote in message
news:74******** *************** ***********@mic rosoft.com...
> Method 2 is the one I use daily in many of my apps. Have you tried it and what erros do you get?
>
> "B-Dog" wrote:
>
> > Those are the error I got initially. Thanks
> >
> > "Nina" <re******@hotma il.com> wrote in message
> > news:23******** *************** ******@phx.gbl. ..
> > > I have tried both ways of sending email but no success.
> > > 1) using System.Web.Mail I get the error
> > > Error: An unhandled exception of
> > > type 'System.Web.Htt pException' occurred in system.web.dll
> > > Additional information: Could not access 'CDO.Message'
> > > object.
> > >
> > >
> > > 2) using CDO I get the error
> > > Error: An unhandled exception of
> > > type 'System.Runtime .InteropService s.COMException'
> > > occurred in PrjESITest.exe
> > > Additional information: The transport failed to connect
> > > to the server.
> > >
> > >
> > > Moreover the Method 1 does not give me any error if i do
> > > not specify the SMTPServer or give a local IP address for
> > > the SMTP Server.
> > > But it works only on some machines.
> > >
> > > Could anyone help me with this?
> > >
> > > Regards,
> > > Nina
> > >
> >
> >
> >

Nov 20 '05 #7
Hmmn, sounds logical but since I'm getting a CDO error message that is what
bothers me. I know Exchange can SMTP mail but it does not use CDO mail,
only IIS uses CDO mail. I can get it to work through my IIS SMTP server but
not through exchange. I get error message

Could not access 'CDO.Message' object.

I've tried using the DNS name and IP address with no avail. But I do use
SMTP through my exchange server with other devices so I know that isn't the
problem. I have exchange setup that any device can send smtp mail as long
it is on our lan without authentication. I have a feeling that this webmail
is using CDO may be causing the problem on exchange.

"BrianDH" <Br*****@discus sions.microsoft .com> wrote in message
news:6C******** *************** ***********@mic rosoft.com...
Ok, I talked to my network gut. He said if exchange is set-up to allow SMTP send Mail then all you need to do is call the DNS or server name. or IP
address to send the mail.
Imports System.Web
Imports System.Web.Mail
Dim aMessage As New MailMessage
aMessage.From = "Em***@address. com"
aMessage.To = "Em***@address. com"
aMessage.Subjec t = "Report"
aMessage.BodyFo rmat = MailFormat.Text
aMessage.Body = "String"
SmtpMail.SmtpSe rver = "smtp.Name_Of_Y our_Exchange_Se rver.com"
SmtpMail.Send(a Message)

Brian

"B-Dog" wrote:
I can get it to work with my SMTP server fine but my question was how to
make it work with Exchange since it does not use CDO mail.

"BrianDH" <Br*****@discus sions.microsoft .com> wrote in message
news:15******** *************** ***********@mic rosoft.com...
No I am using the SMTP Server on our IIS Server. Exchange plays no
part in this that I am aware of.

B

"B-Dog" wrote:

> I haven't had a real chance to test it, I'm fixing to try and
implement but
> you are using it with an exchange server? Thanks Brian.
>
> "BrianDH" <Br*****@discus sions.microsoft .com> wrote in message
> news:74******** *************** ***********@mic rosoft.com...
> > Method 2 is the one I use daily in many of my apps. Have you
tried it and
> what erros do you get?
> >
> > "B-Dog" wrote:
> >
> > > Those are the error I got initially. Thanks
> > >
> > > "Nina" <re******@hotma il.com> wrote in message
> > > news:23******** *************** ******@phx.gbl. ..
> > > > I have tried both ways of sending email but no success.
> > > > 1) using System.Web.Mail I get the error
> > > > Error: An unhandled exception of
> > > > type 'System.Web.Htt pException' occurred in system.web.dll
> > > > Additional information: Could not access 'CDO.Message'
> > > > object.
> > > >
> > > >
> > > > 2) using CDO I get the error
> > > > Error: An unhandled exception of
> > > > type 'System.Runtime .InteropService s.COMException'
> > > > occurred in PrjESITest.exe
> > > > Additional information: The transport failed to connect
> > > > to the server.
> > > >
> > > >
> > > > Moreover the Method 1 does not give me any error if i do
> > > > not specify the SMTPServer or give a local IP address for
> > > > the SMTP Server.
> > > > But it works only on some machines.
> > > >
> > > > Could anyone help me with this?
> > > >
> > > > Regards,
> > > > Nina
> > > >
> > >
> > >
> > >
>
>
>


Nov 20 '05 #8
I found this post ...

In the case of WebForms, SMTP email sending is a piece of cake, since it
relies on the server SMTP services being available.

On client WinForms, however, you have to do more work. If you use SMTP
(using System.Web.Mail ) then you are forced to rely on SMTP services running
on each client, which will not be available in most cases.

If the computer does NOT have Outlook installed, you will not be able to use
Exchange, though. From my experience with Outlook and Exchange 5.5 - you
will need to log into an Outlook profile in order to create mail objects. If
the Exchange server is not available (which it wont because Outlook isnt
installed and a profile wont be created on the client), you wont be able to
call the Login method and pass it the necessary profile data. You dont HAVE
to specify a profile when you login - if you leave the Profile name blank it
uses the default profile on the client, but this still requires a profile be
present.

Sending email requires SOME kind of protocol. If Outlook isnt available,
perhaps you can connect to an SMTP server elsewhere, but this most certainly
prevents you from using Exchange to do things like save sent messages, for
example.

"BrianDH" <Br*****@discus sions.microsoft .com> wrote in message
news:6C******** *************** ***********@mic rosoft.com...
Ok, I talked to my network gut. He said if exchange is set-up to allow SMTP send Mail then all you need to do is call the DNS or server name. or IP
address to send the mail.
Imports System.Web
Imports System.Web.Mail
Dim aMessage As New MailMessage
aMessage.From = "Em***@address. com"
aMessage.To = "Em***@address. com"
aMessage.Subjec t = "Report"
aMessage.BodyFo rmat = MailFormat.Text
aMessage.Body = "String"
SmtpMail.SmtpSe rver = "smtp.Name_Of_Y our_Exchange_Se rver.com"
SmtpMail.Send(a Message)

Brian

"B-Dog" wrote:
I can get it to work with my SMTP server fine but my question was how to
make it work with Exchange since it does not use CDO mail.

"BrianDH" <Br*****@discus sions.microsoft .com> wrote in message
news:15******** *************** ***********@mic rosoft.com...
No I am using the SMTP Server on our IIS Server. Exchange plays no
part in this that I am aware of.

B

"B-Dog" wrote:

> I haven't had a real chance to test it, I'm fixing to try and
implement but
> you are using it with an exchange server? Thanks Brian.
>
> "BrianDH" <Br*****@discus sions.microsoft .com> wrote in message
> news:74******** *************** ***********@mic rosoft.com...
> > Method 2 is the one I use daily in many of my apps. Have you
tried it and
> what erros do you get?
> >
> > "B-Dog" wrote:
> >
> > > Those are the error I got initially. Thanks
> > >
> > > "Nina" <re******@hotma il.com> wrote in message
> > > news:23******** *************** ******@phx.gbl. ..
> > > > I have tried both ways of sending email but no success.
> > > > 1) using System.Web.Mail I get the error
> > > > Error: An unhandled exception of
> > > > type 'System.Web.Htt pException' occurred in system.web.dll
> > > > Additional information: Could not access 'CDO.Message'
> > > > object.
> > > >
> > > >
> > > > 2) using CDO I get the error
> > > > Error: An unhandled exception of
> > > > type 'System.Runtime .InteropService s.COMException'
> > > > occurred in PrjESITest.exe
> > > > Additional information: The transport failed to connect
> > > > to the server.
> > > >
> > > >
> > > > Moreover the Method 1 does not give me any error if i do
> > > > not specify the SMTPServer or give a local IP address for
> > > > the SMTP Server.
> > > > But it works only on some machines.
> > > >
> > > > Could anyone help me with this?
> > > >
> > > > Regards,
> > > > Nina
> > > >
> > >
> > >
> > >
>
>
>


Nov 20 '05 #9
Well my whole problem is I want it to go through my exchange server. I
don't want to use CDO mail. I have CDO already on my web server but I want
it to go through exchange. I'll look at other methods. Thanks

"BrianDH" <Br*****@discus sions.microsoft .com> wrote in message
news:0A******** *************** ***********@mic rosoft.com...
Did you try the Method 1, installing CDO?

Method 2 runs on our client PCs without Outlook running. Web based and windows based applications.
Damn MS! ;-)
"B-Dog" wrote:
Hmmn, sounds logical but since I'm getting a CDO error message that is what bothers me. I know Exchange can SMTP mail but it does not use CDO mail,
only IIS uses CDO mail. I can get it to work through my IIS SMTP server but not through exchange. I get error message

Could not access 'CDO.Message' object.

I've tried using the DNS name and IP address with no avail. But I do use SMTP through my exchange server with other devices so I know that isn't the problem. I have exchange setup that any device can send smtp mail as long it is on our lan without authentication. I have a feeling that this webmail is using CDO may be causing the problem on exchange.

"BrianDH" <Br*****@discus sions.microsoft .com> wrote in message
news:6C******** *************** ***********@mic rosoft.com...
Ok, I talked to my network gut. He said if exchange is set-up to allow
SMTP send Mail then all you need to do is call the DNS or server name. or IP address to send the mail.

Imports System.Web
Imports System.Web.Mail
Dim aMessage As New MailMessage
aMessage.From = "Em***@address. com"
aMessage.To = "Em***@address. com"
aMessage.Subjec t = "Report"
aMessage.BodyFo rmat = MailFormat.Text
aMessage.Body = "String"
SmtpMail.SmtpSe rver = "smtp.Name_Of_Y our_Exchange_Se rver.com"
SmtpMail.Send(a Message)

Brian

"B-Dog" wrote:

> I can get it to work with my SMTP server fine but my question was

how to > make it work with Exchange since it does not use CDO mail.
>
> "BrianDH" <Br*****@discus sions.microsoft .com> wrote in message
> news:15******** *************** ***********@mic rosoft.com...
> > No I am using the SMTP Server on our IIS Server. Exchange plays no

part in
> this that I am aware of.
> >
> > B
> >
> > "B-Dog" wrote:
> >
> > > I haven't had a real chance to test it, I'm fixing to try and

implement
> but
> > > you are using it with an exchange server? Thanks Brian.
> > >
> > > "BrianDH" <Br*****@discus sions.microsoft .com> wrote in message
> > > news:74******** *************** ***********@mic rosoft.com...
> > > > Method 2 is the one I use daily in many of my apps. Have you

tried it
> and
> > > what erros do you get?
> > > >
> > > > "B-Dog" wrote:
> > > >
> > > > > Those are the error I got initially. Thanks
> > > > >
> > > > > "Nina" <re******@hotma il.com> wrote in message
> > > > > news:23******** *************** ******@phx.gbl. ..
> > > > > > I have tried both ways of sending email but no success.
> > > > > > 1) using System.Web.Mail I get the error
> > > > > > Error: An unhandled exception of
> > > > > > type 'System.Web.Htt pException' occurred in system.web.dll
> > > > > > Additional information: Could not access 'CDO.Message'
> > > > > > object.
> > > > > >
> > > > > >
> > > > > > 2) using CDO I get the error
> > > > > > Error: An unhandled exception of
> > > > > > type 'System.Runtime .InteropService s.COMException'
> > > > > > occurred in PrjESITest.exe
> > > > > > Additional information: The transport failed to connect
> > > > > > to the server.
> > > > > >
> > > > > >
> > > > > > Moreover the Method 1 does not give me any error if i do
> > > > > > not specify the SMTPServer or give a local IP address for
> > > > > > the SMTP Server.
> > > > > > But it works only on some machines.
> > > > > >
> > > > > > Could anyone help me with this?
> > > > > >
> > > > > > Regards,
> > > > > > Nina
> > > > > >
> > > > >
> > > > >
> > > > >
> > >
> > >
> > >
>
>
>


Nov 20 '05 #10

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

Similar topics

1
1802
by: Brian Henry | last post by:
Does anyone know how to send an email to an internal exchange server (internal email only, how you can send email to a username in active directory in exchange with out a domain (@domain.com) after it..) from vb.net with out useing smtp? because some exchange servers actually dont use SMTP because they are internal only... if you know what I mean, do you know how to do this from VB.net to send to an internal user? thanks! --...
2
3154
by: Eric Timely | last post by:
After a trust with exchange server established the xp_SendMail gives the following error: xp_sendmail: failed with mail error 0x80070005 Prior to the trust everything worked fine. I have tried the following: 1)Checking SQL and SQLAgents accounts all match up with default mail profile.
1
1198
by: Matty | last post by:
Hi, Does anybody know if asp.net can connect exchange server to make a webmail client on my site without using it's own web access? Another thing, does anybody have an example app of how to connect ASP.NET to a mail server via IMAP4? Matt
2
3523
by: RedEye | last post by:
Hello, I am trying to create a class to send email via POP3 or Exchange. Everything works fine when sending via POP3 but fails when sending via exchange. Error: Could not access 'CDO.Message' object. The following code works fine in a VB.Net test app but fails on the web. Does anyone have an idea why??
8
4386
by: Frank | last post by:
I think I've confused myself completely here :-) I have used System.Web.Mail, but am not sure if this works with Exchange Server 5.5. I asked the client if they're email server supported SMTP, and got the following reply (exact quote): Exchange 5.5 uses IMS connector for communication between the internal and the external world. IMS is based on SMTP Protocol. For mail flow within the organization Exchange 5.5 uses Message Transfer...
1
2962
by: Gilbert Cheung | last post by:
Hello. I am writing a website for my company. There is a sign-up form that requires us to send a confirmation email to our customer. Our company uses Exchange Server 2000 as our mail server. We decided not to implement any smtp server as that may post some additional security risk. The question is, how can I write an ASP.NET 1.1 script (in C#, though I think there is not much difference between C# and VB.NET) that can send email,...
8
2854
by: Michel Posseth [MCP] | last post by:
Hi does someone has experience with this ?? i have made a lot of apps in the past that were capable of sending e-mails the server i then talked to was a Linux SMTP server and it worked great Now i work in a company with a MS exchange server and would like to send some e-mails however i can`t get it to work at all error is : ( translated form the dutch language )
0
963
by: sumeshkbk | last post by:
Hi, Is there any difference to sending emails from an exchange server.? I have been trying to send a mail using cd object. my server having exchange 2003 also installed. i am just creating a cdo object and specifying the exchange server name.. as the files remaining in the server itself i didnt use any username and password.... bue its not working... Getting an error like.... Cannot rely..... server not responding......... any help...
2
5758
abdoelmasry
by: abdoelmasry | last post by:
Hi men i have big problem with microsoft exchange server 2003 i installed exchange server as main mail server to use it on in company i have static real ip address im sending and receiving mails good but
0
9892
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...
1
10718
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
9490
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
7888
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
7061
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
5725
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
5915
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4540
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
2
4129
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.