Arkadaşlar merhaba Bu gün bir forum kurulumu yaptım, SMTP posta gönderiminde sorun yaşıyorum tüm bilgiler doğru fakat üye aktivasyon postası yada şifre kurtarma postası göndermiyor. Gönderildi diyor hiç bir hata görünmüyor log larda balan fakat posta gelmiyoır gönderdiğim hesaba. Alan adı yandex DNS de yani tüm ayarları yandex kontrol ediyor. Daha önce hiç yaşamıyordum. Ben daha çok MyBB den şüpheleniyorum 1.8.7 versiyonunu kurdum acaba varmı benzer sorun yaşayan kişiler veya bilgisi olan. Sorunlu arkadaşlar 1.8.7 sürüm başka hostinglerde de denedim smtp posta göndermiyor smtp. php dosyası / MyBB 1.8 Copyright 2014 MyBB Group, All Rights Reserved Website: http://www.mybb.com License: http://www.mybb.com/about/license / // Disallow direct access to this file for security reasons if(! defined / SMTP mail handler class. / if(! defined if(! defined class SmtpMail extends MailHandler { / The SMTP connection. @var resource / public $connection; / SMTP username. @var string / public $username = ''; / SMTP password. @var string / public $password = ''; / Hello string sent to the smtp server with either HELO or EHLO. @var string / public $helo = 'localhost'; / User authenticated or not. @var boolean / public $authenticated = false; / How long before timeout. @var integer / public $timeout = 5; / SMTP status. @var integer / public $status = 0; / SMTP default port. @var integer / public $port = 25; / SMTP default secure port. @var integer / public $secure_port = 465; / SMTP host. @var string / public $host = ''; / The last received error message from the SMTP server. @var string / public $last_error = ''; / Are we keeping the connection to the SMTP server alive? @var boolean / public $keep_alive = false; / Whether to use TLS encryption. @var boolean / public $use_tls = false; function __construct { global $mybb; $protocol = ''; switch if(empty else $local = array('127.0.0.1', '::1', 'localhost'); if(! in_array { if(function_exists && gethostname !== false) elseif(function_exists { $helo = php_uname ; if(! empty } elseif(! empty } $this->host = $protocol. $this->host; if(empty && ! empty && !@ini_get else if(empty && @ini_get else if(! empty $this->password = $mybb->settings ; $this->username = $mybb->settings ; } / Sends the email. @return bool whether or not the email got sent or not. / function send { global $lang, $mybb; if(!$this->connected { if(!$this->connect } if($this->connected { if(!$this->send_data('MAIL FROM:<'.$this->from.'>', '250')) // Loop through recipients $emails = explode ; foreach { $to = trim ; if(!$this->send_data('RCPT TO:<'.$to.'>', '250')) } if($this->send_data('DATA', '354')) { $this->send_data('Date: ' . gmdate ; $this->send_data ; $this->send_data ; // Only send additional headers if we've got any if(trim $this->send_data ; // Queue the actual message $this->message = str_replace ; $this->send_data ; } else $this->send_data('.', '250'); if return true; } else } / Connect to the SMTP server. @return boolean True if connection was successful / function connect { global $lang, $mybb; $this->connection = @fsockopen ; // DIRECTORY_SEPARATOR checks if running windows if(function_exists && DIRECTORY_SEPARATOR!= '\\') if(is_resource { $this->status = 1; $this->get_data ; if(!$this->check_status('220')) if($this->use_tls || (! empty && ! empty else $data = $this->send_data(" ", '250'); if if($this->use_tls && preg_match("#250 STARTTLS#mi", $data)) { if(!$this->send_data('STARTTLS', '220')) if(!@stream_socket_enable_crypto // Resend EHLO to get updated service list $data = $this->send_data(" ", '250'); if } if(! empty && ! empty { preg_match("#250 AUTH $#mi", $data, $matches); if(!$this->auth($matches )) } return true; } else } / Authenticate against the SMTP server. @param string $auth_methods A list of authentication methods supported by the server @return boolean True on success / function auth { global $lang, $mybb; $auth_methods = explode(" ", trim ; if(in_array { if(!$this->send_data("AUTH LOGIN", 334)) { if($this->code == 503) $this->fatal_error ; return false; } if(!$this->send_data(base64_encode , '334')) if(!$this->send_data(base64_encode , '235')) } else if(in_array { if(!$this->send_data("AUTH PLAIN", '334')) { if($this->code == 503) $this->fatal_error ; return false; } $auth = base64_encode(chr(0).$this->username. chr(0).$this->password); if(!$this->send_data($auth, 235)) } else // Still here, we're authenticated return true; } / Fetch data from the SMTP server. @return string The data from the SMTP server / function get_data { $string = ''; while((($line = fgets($this->connection, 515)) !== false)) { $string.= $line; if(substr($line, 3, 1) == ' ') } $string = trim ; $this->data = $string; $this->code = substr($this->data, 0, 3); return $string; } / Check if we're currently connected to an SMTP server @return boolean true if connected / function connected { if($this->status == 1) return false; } / Send data through to the SMTP server. @param string $data The data to be sent @param int|bool $status_num The response code expected back from the server @return boolean True on success / function send_data { if($this->connected { if(fwrite { if { $rec = $this->get_data ; if($this->check_status else } return true; } else } return false; } / Checks if the received status code matches the one we expect. @param int $status_num The status code we expected back from the server @return string|bool / function check_status { if else } / Close the connection to the SMTP server. / function close { if($this->status == 1) } / Get the last error message response from the SMTP server @return string The error message response from the SMTP server / function get_error { if return $this->last_error; } / Set the last error message response from the SMTP server @param string $error The error message response / function set_error }