Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMTP with Exchange 2003 #637

Closed
jumpig opened this issue Oct 31, 2011 · 4 comments
Closed

SMTP with Exchange 2003 #637

jumpig opened this issue Oct 31, 2011 · 4 comments

Comments

@jumpig
Copy link

jumpig commented Oct 31, 2011

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)

@narfbg
Copy link
Contributor

narfbg commented Oct 25, 2012

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.

@alexbilbie
Copy link
Contributor

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

@alexbilbie
Copy link
Contributor

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
Copy link

tj111 commented Jun 20, 2013

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.

baypup pushed a commit to baypup/CodeIgniter that referenced this issue Aug 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants