Hello, on 09/05/2008 12:20 AM Larry Brown said the following:
I am having a ball of a time trying to figure this one out... If anyone has dealt with this before I'd love to get some morsels of wisdom from you... I am trying to connect to a postfix server I have set up remotely using smtp auth with tls. The postfix appears to be configured correctly at this point. I can telnet to port 25 and it will list tls as an option as the howto describes it should. I try to connect from php and get: PHP Warning: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:func(143):reason(267) in /opt/scriptsMain/include/class.smtp.php on line 122
I suspect that you are using the wrong port to send messages via SSL . The fact that port 25 SMTP connections list TLS as available mode, that is for starting TLS after the connection was started.
I use this class to send messages via SMTP using SSL to Gmail, but the port is not 25. You may want to try it to see if it works for your server. Take a look at the test_smtp_message.php example script.
http://www.phpclasses.org/mimemessage You also need this for SMTP deliveries: http://www.phpclasses.org/smtpclass and this to initiate authentication: http://www.phpclasses.org/sasl -- Regards, Manuel Lemos Find and post PHP jobs http://www.phpclasses.org/jobs/ PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php