[問題]求救

phpBB Installation & Usage Support
phpBB 2 安裝於各類型作業平台之問題討論;外掛問題,請到相關版面依發問格式發表!
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
主題已鎖定
頭像
nkhg
星球普通子民
星球普通子民
文章: 11
註冊時間: 2003-10-16 12:43

[問題]求救

文章 nkhg »

會員註冊發生問題

Ran into problems sending Mail. Response: 535 authorization failed (#5.7.0)

DEBUG MODE

Line : 40
File : c:\appserv\www\phpbb2\includes\smtp.php

發送新的私人訊息發生問題
Ran into problems sending Mail. Response: 535 authorization failed (#5.7.0)

DEBUG MODE

Line : 40
File : c:\appserv\www\phpbb2\includes\smtp.php

拜託
這要如何解決

appserv winXP
Artemas
竹貓忠實會員
竹貓忠實會員
文章: 489
註冊時間: 2003-08-23 03:18
來自: NorthBlue
聯繫:

文章 Artemas »

阿就是申請新帳號與使用私人訊息有啟用郵件通知功能\r
而你的smtp沒辦法發出通知信勒
所以看看你的控制台smtp設定

記得先爬文有關smtp設定
圖檔
Os: Windows 2003
Constitute: IIS.6 + php4 + MySql 4 + ODBC + phpMyAdmin2.6.0 + phpBB 2.0.23
url: http://oops.cafepark.com
頭像
nkhg
星球普通子民
星球普通子民
文章: 11
註冊時間: 2003-10-16 12:43

[閒聊]喔~~

文章 nkhg »

喔~~
原來是這樣子~~
小弟下次就post
smtp的設定
請大大可以繼續指導~
謝謝
頭像
nkhg
星球普通子民
星球普通子民
文章: 11
註冊時間: 2003-10-16 12:43

[問題]求救

文章 nkhg »

<?php
/***************************************************************************
* smtp.php
* -------------------
* begin : Wed May 09 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: smtp.php,v 1.16.2.2 2002/12/22 15:09:17 psotfx Exp $
*
***************************************************************************/

/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/

define('SMTP_INCLUDED', 1);
//
// This function has been modified as provided
// by SirSir to allow multiline responses when
// using SMTP Extensions
//
function server_parse($socket, $response)
{
while ( substr($server_response,3,1) != ' ' )
{
if( !( $server_response = fgets($socket, 256) ) )
{
message_die(GENERAL_ERROR, "Couldn't get mail server response codes", "", __LINE__, __FILE__);
}
}

if( !( substr($server_response, 0, 3) == $response ) )
{
message_die(GENERAL_ERROR, "Ran into problems sending Mail. Response: $server_response", "", __LINE__, __FILE__);
}
}

/****************************************************************************
* Function: smtpmail
* Description: This is a functional replacement for php's builtin mail
* function, that uses smtp.
* Usage: The usage for this function is identical to that of php's
* built in mail function.
****************************************************************************/
function smtpmail($mail_to, $subject, $message, $headers = "")
{
// For now I'm using an array based $smtp_vars to hold the smtp server
// info, but it should probably change to $board_config...
// then the relevant info would be $board_config['smtp_host'] and
// $board_config['smtp_port'].
global $board_config;

//
// Fix any bare linefeeds in the message to make it RFC821 Compliant.
//
$message = preg_replace("/(?<!
)
/si", "
", $message);

if ($headers != "")
{
if(is_array($headers))
{
if(sizeof($headers) > 1)
{
$headers = join("
", $headers);
}
else
{
$headers = $headers[0];
}
}
$headers = chop($headers);

//
// Make sure there are no bare linefeeds in the headers
//
$headers = preg_replace("/(?<!
)
/si", "
", $headers);
//
// Ok this is rather confusing all things considered,
// but we have to grab bcc and cc headers and treat them differently
// Something we really didn't take into consideration originally
//
$header_array = explode("
", $headers);
@reset($header_array);
$headers = "";
while( list(, $header) = each($header_array) )
{
if( preg_match("/^cc:/si", $header) )
{
$cc = preg_replace("/^cc:(.*)/si", "\\\1", $header);
}
else if( preg_match("/^bcc:/si", $header ))
{
$bcc = preg_replace("/^bcc:(.*)/si", "\\\1", $header);
$header = "";
}
$headers .= $header . "
";
}
$headers = chop($headers);
$cc = explode(",", $cc);
$bcc = explode(",", $bcc);
}
if($mail_to == "")
{
message_die(GENERAL_ERROR, "No email address specified", "", __LINE__, __FILE__);
}
if(trim($subject) == "")
{
message_die(GENERAL_ERROR, "No email Subject specified", "", __LINE__, __FILE__);
}
if(trim($message) == "")
{
message_die(GENERAL_ERROR, "Email message was blank", "", __LINE__, __FILE__);
}
$mail_to_array = explode(",", $mail_to);

//
// Ok we have error checked as much as we can to this point let's get on
// it already.
//
if( !$socket = fsockopen($board_config['smtp_host'], 25, $errno, $errstr, 20) )
{
message_die(GENERAL_ERROR, "Could not connect to smtp host : $errno : $errstr", "", __LINE__, __FILE__);
}
server_parse($socket, "220");

if( !empty($board_config['smtp_username']) && !empty($board_config['smtp_password']) )
{
// Send the RFC2554 specified EHLO.
// This improved as provided by SirSir to accomodate
// both SMTP AND ESMTP capable servers
fputs($socket, "EHLO " . $board_config['smtp_host'] . "
");
server_parse($socket, "250");

fputs($socket, "AUTH LOGIN
");
server_parse($socket, "334");
fputs($socket, base64_encode($board_config['smtp_username']) . "
");
server_parse($socket, "334");
fputs($socket, base64_encode($board_config['smtp_password']) . "
");
server_parse($socket, "235");
}
else
{
// Send the RFC821 specified HELO.
fputs($socket, "HELO " . $board_config['smtp_host'] . "
");
server_parse($socket, "250");
}

// From this point onward most server response codes should be 250
// Specify who the mail is from....
fputs($socket, "MAIL FROM: <" . $board_config['board_email'] . ">
");
server_parse($socket, "250");

// Specify each user to send to and build to header.
$to_header = "To: ";
@reset( $mail_to_array );
while( list( , $mail_to_address ) = each( $mail_to_array ))
{
//
// Add an additional bit of error checking to the To field.
//
$mail_to_address = trim($mail_to_address);
if ( preg_match('/[^ ]+\@[^ ]+/', $mail_to_address) )
{
fputs( $socket, "RCPT TO: <$mail_to_address>
" );
server_parse( $socket, "250" );
}
$to_header .= ( ( $mail_to_address != '' ) ? ', ' : '' ) . "<$mail_to_address>";
}
// Ok now do the CC and BCC fields...
@reset( $bcc );
while( list( , $bcc_address ) = each( $bcc ))
{
//
// Add an additional bit of error checking to bcc header...
//
$bcc_address = trim( $bcc_address );
if ( preg_match('/[^ ]+\@[^ ]+/', $bcc_address) )
{
fputs( $socket, "RCPT TO: <$bcc_address>
" );
server_parse( $socket, "250" );
}
}
@reset( $cc );
while( list( , $cc_address ) = each( $cc ))
{
//
// Add an additional bit of error checking to cc header
//
$cc_address = trim( $cc_address );
if ( preg_match('/[^ ]+\@[^ ]+/', $cc_address) )
{
fputs($socket, "RCPT TO: <$cc_address>
");
server_parse($socket, "250");
}
}
// Ok now we tell the server we are ready to start sending data
fputs($socket, "DATA
");

// This is the last response code we look for until the end of the message.
server_parse($socket, "354");

// Send the Subject Line...
if (!eregi ('Subject:',$subject)) fputs($socket, "Subject: $subject
");

// Now the To Header.
if (!eregi ('To:',$headers)) fputs($socket, "$to_header
");

// Now any custom headers....
fputs($socket, "$headers

");

// Ok now we are ready for the message...
fputs($socket, "$message
");

// Ok the all the ingredients are mixed in let's cook this puppy...
fputs($socket, ".
");
server_parse($socket, "250");

// Now tell the server we are done and close the socket...
fputs($socket, "QUIT
");
fclose($socket);

return TRUE;
}

?>
頭像
nkhg
星球普通子民
星球普通子民
文章: 11
註冊時間: 2003-10-16 12:43

文章 nkhg »

php4
MySql 4
WinXP
Appserv
頭像
nkhg
星球普通子民
星球普通子民
文章: 11
註冊時間: 2003-10-16 12:43

[問題]出現的問題

文章 nkhg »

Could not connect to smtp host : 0 :

DEBUG MODE

Line : 128

File : c:\appserv\www\phpbb2\includes\stmp.php

這是我註冊新會員時~~
會出現的錯誤~~
但~~~
有註冊成功~
我上面有post
stmp的內容
可以麻煩大大幫忙一下~
拜託了
Martinet
竹貓忠實會員
竹貓忠實會員
文章: 850
註冊時間: 2003-06-09 21:58
聯繫:

文章 Martinet »

他指的不是這個吧@@
是指 系統管理控制台=>基本組態 裡的smtp設定阿@@
jt3
星球公民
星球公民
文章: 88
註冊時間: 2003-04-23 12:44

文章 jt3 »

一般來說,設定SMTP應該是在php.ini
尋找\r
[mail function]
; For Win32 only.
SMTP = 填入郵件主機的smtp

; For Win32 only.
sendmail_from = 填入你的電子郵件
頭像
nkhg
星球普通子民
星球普通子民
文章: 11
註冊時間: 2003-10-16 12:43

[討論]smtp的設定

文章 nkhg »

系統管理員電子郵件信箱<=====資訊管理系\r


使用 SMTP 伺服器傳送電子郵件
假如您想要使用 SMTP 伺服器發送電子郵件請選擇 '是' <===是\r

SMTP 伺服器網域名稱 <===smtp.mail.hwai.edu.tw

SMTP 使用者帳號
只有在主機有要求的情況下才需要輸入 <====fased

SMTP 密碼\r
只有在主機有要求的情況下才需要輸入<====xxxxx
主題已鎖定

回到「phpBB 2 安裝與使用」