Skip to content
This repository

SMTP with Exchange 2003 #637

Closed
jumpig opened this Issue · 4 comments

4 participants

jumpig Andrey Andreev Alex Bilbie tj111
jumpig

As reported in CI forum (http://codeigniter.com/forums/viewthread/203230/), I get a timeout error sending email through Email.php vs Exchange 2003.
On the HELLO message phase, the message sent is:
EHLO my.webserver.name

Sending this message manually on the server via Telnet the answer I get is

250-my.exchange.server.name Hello [192.168.215.216]
250-TURN
250-SIZE
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250-X-EXPS GSSAPI NTLM LOGIN
250-X-EXPS=LOGIN
250-AUTH GSSAPI NTLM LOGIN
250-AUTH=LOGIN
250-X-LINK2STATE
250-XEXCH50
250 OK

In the web application I get a timeout error (line number around 1839) when the following command is executed:
fgets($this->_smtp_connect, 512)

Andrey Andreev
Collaborator

Anybody out there having access to MS Exchange 2003 in order to confirm this?

There's a post on that forum thread suggesting that changing the CRLF value solves this problem - if so, we should consider this a configuration issue.

Alex Bilbie

I've got access to Ex2003 so I'll do some testing now...

Alex Bilbie

Confirmed, adding:

$config['crlf'] = "\r\n";
$config['newline'] = "\r\n"; 

doesn't hang the script anymore. Therefore I don't think we need to change anything in CI.

tj111
tj111 commented

I spent ~2 days trying to track down this fix (spent countless hours on Google and Stack Overflow). From what I've seen in blogs and forums is that other people are having this issue, and none of them have any resolution. I think this fix needs to be better publicized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.