[PHP] PHP MS Exchange Server problem

2003-07-16 Thread Charles Vos
Hello All---
 
I'm having some trouble getting PHP to communicate with my Windows 2000 MS 
Exchange Server... I'm running PHP 4.3.2 on a Win2000 machine serving with Apache 1.3.
 
The code I'm using is:
 
$mbox = imap_open({x.x.x.x:143},admin,adminpass, OP_HALFOPEN);
$err = imap_errors();
while (list($key, $val) = each($err))
print imap_utf7_decode($val).br\n;
$alrt = imap_alerts();
while (list($key, $val) = each($alrt))
print imap_utf7_decode($val).br\n;
 
This yields the error:
Warning: imap_open(): Couldn't open stream {x.x.x.x:143} in 
c:\apache\apache\htdocs\sdimail.php on line 11
Connection refused

If I change the imap_open command to use {x.x.x.x:143\} as the host, I get a 
different error:
 
Warning: imap_open(): Couldn't open stream {x.x.x.x:143\} in 
c:\apache\apache\htdocs\sdimail.php on line 11
Can't open mailbox {192.168.0.3:143\}: invalid remote specification

which makes me suspect that I am actually able to connect but PHP isn't finding 
anything it likes (what is it looking for?)
 
can anyone help me with this or at least point me towards a tutorial on using PHP with 
MS Exchange?
 
Thanks in advance for your help,
 
-Charlie
[EMAIL PROTECTED]


[PHP] Re: PHP MS Exchange Server problem

2003-07-16 Thread Baroiller Pierre-Emmanuel
Hi...

are your sure your Exchanger server has imap enabled and port 143 is open ?
If you've got the message connection refused, it can be :
- not imap server is running
- your login/password couple is wrong
or
- you can't connect to the port 143...

regards,
P.E. Baroiller


Charles Vos [EMAIL PROTECTED] a écrit dans le message de
news:[EMAIL PROTECTED]
Hello All---

I'm having some trouble getting PHP to communicate with my Windows 2000
MS Exchange Server... I'm running PHP 4.3.2 on a Win2000 machine serving
with Apache 1.3.

The code I'm using is:

$mbox = imap_open({x.x.x.x:143},admin,adminpass, OP_HALFOPEN);
$err = imap_errors();
while (list($key, $val) = each($err))
print imap_utf7_decode($val).br\n;
$alrt = imap_alerts();
while (list($key, $val) = each($alrt))
print imap_utf7_decode($val).br\n;

This yields the error:
Warning: imap_open(): Couldn't open stream {x.x.x.x:143} in
c:\apache\apache\htdocs\sdimail.php on line 11
Connection refused

If I change the imap_open command to use {x.x.x.x:143\} as the host, I
get a different error:

Warning: imap_open(): Couldn't open stream {x.x.x.x:143\} in
c:\apache\apache\htdocs\sdimail.php on line 11
Can't open mailbox {192.168.0.3:143\}: invalid remote specification

which makes me suspect that I am actually able to connect but PHP isn't
finding anything it likes (what is it looking for?)

can anyone help me with this or at least point me towards a tutorial on
using PHP with MS Exchange?

Thanks in advance for your help,

-Charlie
[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] MS Exchange

2001-11-19 Thread Benj Arriola

Hello Guys!

On the php.ini, if there is no SMTP server
and MS Exchange is used, what changes are needed
to be done on the php.ini file?

thanks,

Benj


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] MS Exchange

2001-11-19 Thread Kurt Lieber

On Monday 19 November 2001 10:19 pm, Benj Arriola wrote:
 On the php.ini, if there is no SMTP server
 and MS Exchange is used, what changes are needed
 to be done on the php.ini file?

MS Exchange has supported SMTP since (at least) version 4.0 and possibly even 
since the old MS Mail days.  

--kurt

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]