Hi, im working in setup a tracker with TS 4.3, and actually i want to use the "external mail function" for send the confirmation mails and stuff, but the "problem" is that the external smtp that i have it only works with TLS, doing some search in the code i found this:
include/smtp/smtp.lib.php
Code:
function start_tls ()
{
if (!function_exists ('stream_socket_enable_crypto'))
{
trigger_error ('TLS is not supported', E_USER_ERROR);
return false;
}
$this->_cmd ('STARTTLS');
stream_socket_enable_crypto ($this->_connection, true, STREAM_CRYPTO_METHOD_TLS_CLIENT);
}
that i suppouse is the code for start the TLS connection, but it seems that isn't working or i need to define something else in the host when i configure it, i found a test mail script on the distribution and the output of the test is:
220 mx.google.com ESMTP 20sm3303520agb.31 EHLO myhost.com 250-mx.google.com at your service, [XX.56.XX.65] AUTH LOGIN 250-SIZE 28311552 c3RhZmZAY29sZHBsYXlidsadasda0= 250-8BITMIME ZdasdNGwwLi4u 250-STARTTLS MAIL FROM: 250 ENHANCEDSTATUSCODES RCPT TO: 530 5.7.0 Must issue a STARTTLS command first. 20smdsad3303520agb.31 RSET 502 5.5.1 Unrecognized command. 20sm3303520agb.31 RSET 502 5.5.1 Unrecognized command. 20sm3303520agb.31 RSET 530 5.7.0 Must issue a STARTTLS command first. 20sm3303520agb.31 RSET 530 5.7.0 Must issue a STARTTLS command first. 20sm3303520agb.31 RSET 250 2.1.0 Flushed 20sm3303520agb.31 QUIT 250 2.1.0 Flushed 20sm3303520agb.31
yeah i want to use the google free mail hosting for my domain :D
So the common message is : "Must issue a STARTTLS command first" , how can i define that it has to use SSL/TLS for send the emails? in the definition of "Outgoing mail (SMTP) address:" ? or maybe change something at the code? i'm not very into PHP just the basics and my knowledge doesn't help for fix it by my self :(
Any help please?