PHP Classes

tream_socket_enable_crypto() ERROR

Recommend this page to a friend!

      SMTP E-mail sending class  >  All threads  >  tream_socket_enable_crypto() ERROR  >  (Un) Subscribe thread alerts  
Subject:tream_socket_enable_crypto() ERROR
Summary:i was trying to send a test message over Gmail SMTP but failed
Messages:2
Author:ratno
Date:2009-06-08 12:51:36
Update:2009-06-08 14:28:48
 

  1. tream_socket_enable_crypto() ERROR   Reply   Report abuse  
Picture of ratno ratno - 2009-06-08 12:51:36
The message that appears in debug mode:

Resolving SMTP server domain "smtp.gmail.com"...
Connecting to host address "209.85.147.109" port 587...
Connected to SMTP server "smtp.gmail.com".
S 220 mx.google.com ESMTP n6sm5587392wag.39
C EHLO localhost
S 250-mx.google.com at your service, [125.164.211.224]
S 250-SIZE 35651584
S 250-8BITMIME
S 250-STARTTLS
S 250-ENHANCEDSTATUSCODES
S 250 PIPELINING
C STARTTLS
S 220 2.0.0 Ready to start TLS
Starting TLS cryptograpic protocol

Warning: stream_socket_enable_crypto() [streams.crypto]: this stream does not support SSL/crypto in "<my directory>"\includes\smtpclass\smtp.php on line 964

my settings on smtp :
$smtp = new smtp_class;

$smtp->host_name = "smtp.gmail.com";
$smtp->host_port = 587;
$smtp->ssl = 0;
$smtp->start_tls = 1;
$smtp->localhost = "localhost";
$smtp->direct_delivery = 0;
$smtp->timeout = 10;
$smtp->data_timeout = 0;
$smtp->debug = 1;
$smtp->html_debug = 1;
$smtp->pop3_auth_host = "";
$smtp->user = <myusername>;
$smtp->realm = "";
$smtp->password = <mypassword>;
$smtp->workstation = "";
$smtp->authentication_mechanism = "";

what does it mean? can anybody give me solution?? i only use the smtp_class PHP to send the message. Thx b4.

  2. Re: tream_socket_enable_crypto() ERROR   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-06-08 14:28:48 - In reply to message 1 from ratno
To send messages via Gmail, you need to set ssl class variable to 1, not start_tls.

You may want to read this article:

phpclasses.org/blog/package/9/post/ ...