Bravo List
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares
Old 21st June 2008, 18:08
daeron's Avatar
daeron daeron is offline
Senior Member
Join Date: May 2008
Posts: 18
Default External mail function
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:

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 ESMTP 20sm3303520agb.31 EHLO 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?
Reply With Quote

external , function , mail

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[YBDev] Request function. ajax Community Cafe 2 22nd June 2010 05:58
file get contents function Help AJ Free Torrent Source 1 16th January 2010 16:08
Error function explained joeroberts BT.Manager (phpMyBitTorrent) 0 14th October 2009 16:47
FTS 1.1 getallheaders function in announce.php Ashur Free Torrent Source 2 5th September 2009 16:50
Why need this function in YSE PRE 6!?? kp380lv YSE 6 3rd December 2008 21:01

All times are GMT +2. The time now is 06:18. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2020, vBulletin Solutions Inc.