Page 2 of 2

Re: $SMTP_PORT = 587

Posted: Thu May 24, 2007 12:56 am
by Chris Corbyn
covina wrote:Chris, I wondering why the smoke tests wont work if the smtp_port is changed to 587, the alternative to 25 provided by my ISP.
Any thoughts or clues?

BTW, without xebug, I can run time_sending_with_swift.php, but not the other two.
What error do you get? It could be that your host have firewall rules disallowing connections on that port from the web server, it maybe 587 requires TLS or SSL?

Code: Select all

$smtp =& new Swift_Connection_SMTP("server.tld", 587, SWIFT_SMTP_ENC_TLS); //or ENC_SSL?
Hard to say without seeing an error message though :)

EDIT | Xdebug is needed for the memory tests, but not for the timing tests.

Posted: Thu May 24, 2007 1:09 pm
by covina
Chris, this is the error msg I got after change of smtp_port to 587 on runTestOfBasicSend.php:

Code: Select all

Fatal error: 
Uncaught Error of type [swift_connection_exception] with message [The SMTP connection is not alive and cannot be read from. (fsockopen: #) ]
@0 testofbasicsend::go() in /homepages/514/d1710273/htdocs/xxx.com/tests/smokes/runTestOfBasicSend.php on line 55
@1 swift::swift() in /homepages/514/d1710273/htdocs/xxx.com/tests/smokes/runTestOfBasicSend.php on line 13
@2 swift::connect() in /homepages/514/d1710273/htdocs/lib/Swift.php on line 111

in /homepages/514/d1710273/htdocs/lib/Swift/Errors.php on line 99
Hope this will tell where is the problem.

Posted: Thu May 24, 2007 2:15 pm
by Chris Corbyn
Try changing the configuration value for SMTP_ENCRYPTION to "ssl" or failing that, "tls" in the TestConfiguration.php file. 587 is usually a secure port for SSL connections.

Posted: Thu May 24, 2007 11:08 pm
by covina
Hi Chris, I did as you told, changed SMTP_ENCRYPTION to "ssl", then "tls". In either case, I got the same error message as I had before when SMTP_ENCRYPTION = false.