Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: Accessing Exchange Server from WWW


Message #1 by crt@a... on Mon, 2 Sep 2002 20:46:39
My boss wanted me to setup a feedback/discussion site for our field techs. 
Ok, no problem.  This was to be placed on the internet.  Ok, no problem.  
I used JMail or one of the others to do the email (forgot).  Now she wants 
to incorporate resources from the LAN/intranet.  Big problem.  I had to 
move the site to the LAN and have lost the feedback part.
Our company uses Exchange and nothing else.  I figured I'd use CDO to 
login to my mailbox and send the feedback that way.  In reading up on the 
whole CDO stuff, I can't find anyway to do this.  I found a lot of good 
examples of connecting anonymously or first having to be logged into the 
domain.  Both examples wont work in my case.
My question is: Is there a way not to be logged into the domain and still 
be able to access my mailbox from ASP?
My work PC is a stand alone system and when I need to get to my mailbox, I 
disable the internet NIC and enable the LAN nic. I get my 169 IP and run 
Outlook.  It will prompt me for my mailbox, domain and password. I don't 
want to resort to something like a 'sendkey' program.
I also know that asking IT to change something on the Exchange Server 
would be a wasted call. 

Any ideas would be appreciated!
Message #2 by "Fernando Soto" <fsoto@f...> on Mon, 2 Sep 2002 14:26:35 -0700
Why don't you use WebAcces for exchange?

Fernando Soto V.


-----Original Message-----
From: crt@a... [mailto:crt@a...]
Sent: Monday, September 02, 2002 8:47 PM
To: ASP CDO
Subject: [asp_cdo] Accessing Exchange Server from WWW


My boss wanted me to setup a feedback/discussion site for our field techs. 
Ok, no problem.  This was to be placed on the internet.  Ok, no problem.  
I used JMail or one of the others to do the email (forgot).  Now she wants 
to incorporate resources from the LAN/intranet.  Big problem.  I had to 
move the site to the LAN and have lost the feedback part.
Our company uses Exchange and nothing else.  I figured I'd use CDO to 
login to my mailbox and send the feedback that way.  In reading up on the 
whole CDO stuff, I can't find anyway to do this.  I found a lot of good 
examples of connecting anonymously or first having to be logged into the 
domain.  Both examples wont work in my case.
My question is: Is there a way not to be logged into the domain and still 
be able to access my mailbox from ASP?
My work PC is a stand alone system and when I need to get to my mailbox, I 
disable the internet NIC and enable the LAN nic. I get my 169 IP and run 
Outlook.  It will prompt me for my mailbox, domain and password. I don't 
want to resort to something like a 'sendkey' program.
I also know that asking IT to change something on the Exchange Server 
would be a wasted call. 

Any ideas would be appreciated!
Message #3 by "Chris Tudor" <crt@a...> on Mon, 2 Sep 2002 20:29:57 -0400
It's my understanding that it would have to be installed/setup at the
Exchange server.  No changes to the configuration will be allowed.  The
server isn't even in the same city as my little server.  That would make
things a LOT easier though.

What I need to do is open my mailbox from ASP:

	Set objSession = CreateObject ("MAPI.Session")
	objSession.Logon (...ect)

but as the PC is not logged on to the domain and the Exchange Server doesn't
allow anonymous login's that approach wont work.  However, I can still get
to my mailbox via Outlook (from the desktop).  It will prompt me for
mailbox, domain, and password.
I'm looking for a method to call in which I could supply my credentials.
Once in, I could send the feedback/email with:

       Set objMessage = objSession.Outbox.Messages.Add
       objMessage.subject = "This is a test."
       objMessage.Text = "This is the message text."
       Set objRecipient = objMessage.Recipients.Add
       objRecipient.Name = (...ect)

Or, is there a better way?  Other ideas?

Chris

-----Original Message-----
From: Fernando Soto [mailto:fsoto@f...]
Sent: Monday, September 02, 2002 5:27 PM
To: ASP CDO
Subject: [asp_cdo] RE: Accessing Exchange Server from WWW


Why don't you use WebAcces for exchange?

Fernando Soto V.


-----Original Message-----
From: crt@a... [mailto:crt@a...]
Sent: Monday, September 02, 2002 8:47 PM
To: ASP CDO
Subject: [asp_cdo] Accessing Exchange Server from WWW


My boss wanted me to setup a feedback/discussion site for our field techs.
Ok, no problem.  This was to be placed on the internet.  Ok, no problem.
I used JMail or one of the others to do the email (forgot).  Now she wants
to incorporate resources from the LAN/intranet.  Big problem.  I had to
move the site to the LAN and have lost the feedback part.
Our company uses Exchange and nothing else.  I figured I'd use CDO to
login to my mailbox and send the feedback that way.  In reading up on the
whole CDO stuff, I can't find anyway to do this.  I found a lot of good
examples of connecting anonymously or first having to be logged into the
domain.  Both examples wont work in my case.
My question is: Is there a way not to be logged into the domain and still
be able to access my mailbox from ASP?
My work PC is a stand alone system and when I need to get to my mailbox, I
disable the internet NIC and enable the LAN nic. I get my 169 IP and run
Outlook.  It will prompt me for my mailbox, domain and password. I don't
want to resort to something like a 'sendkey' program.
I also know that asking IT to change something on the Exchange Server
would be a wasted call.

Any ideas would be appreciated!



  Return to Index