Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reading mails from exchange server

Status
Not open for further replies.

ram123

Programmer
Mar 6, 2001
59
US
my coldfusion needs to read the mails from exchange server.
can any one help me out in writing the code?
 
I've never administered Exchange server but you'll need to first make sure it's configured for pop mail. If it doesn't respond to pop requests, your code will never work. It may do this by default but I know in the past that mail administrators would have to specifically configure a corporate mail server to support pop.

Once this is done, it's just a simple matter of using <cfpop>. I would read the docs on this as it will give you important background info on the <cfpop> tag.

Here's some example code to help:

<cfpop
server=&quot;10.1.1.10&quot;
username=&quot;myUsername&quot;
password=&quot;myPassword&quot;
action=&quot;getall&quot;
name=&quot;emails&quot;
timeout=&quot;300&quot;
>

<cfoutput query=&quot;emails&quot;>
From: #emails.from#
Subject: #emails.subject#

#emails.body#
<p>
</cfoutput>

Hope this helps,
GJ
 
Gj,
Thanks, but our exchange server is configured for pop mail and our corporate personnel do not make changes.
That is the problem.
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top