<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>刀客建站系统   管理中心 - 邮件服务器设置 </title>
<%{include file="header.html"}%>
</head>
<body>
<h1>

<span class="action-span1"><a href="<%{$out.glo_domain_directory}%>admin">刀客建站系统   管理中心</a>  - 邮件服务器设置</span>
<span style='float:right;margin-right:10px;'><img src='images/top_help.gif'><a href="http://sitepub.cn/help"> 帮助 </a></span>
<span style='float:right;margin-right:10px;'><img src='images/top_forum.gif'><a href="http://bbs.sitepub.cn"> 论坛 </a></span>
<div style="clear:both"></div>
</h1>
<form method="POST" action="index.php?act=site.save_setemail" name="theForm">
<div class="main-div"><p style="padding: 0 10px">如果您的服务器支持 Mail 函数（具体信息请咨询您的空间提供商）。我们建议您使用系统的 Mail 函数。<br />当您的服务器不支持 Mail 函数的时候您也可以选用 SMTP 作为邮件服务器。</p></div>

<div class="main-div">
  <table width="100%" id="-table" >
              <tr>
        <td class="label" valign="top">
          邮件服务:
		  </td>
        <td><label for="value_507_0"><input type="radio" name="mail_type"  value="mail"  onclick='if(this.checked){$("#smtp_box").hide();}'  <%{$out.is_mail}%> />采用服务器内置的 Mail 服务 </label>
                    <label for="value_507_1"><input type="radio" name="mail_type" onclick='if(this.checked){$("#smtp_box").show();}'  value="smtp" <%{$out.is_smtp}%>/>采用其他的 SMTP 服务</label></td>
       </tr>
	     <tr>
        <td class="label" valign="top">
        服务器端口:
		  </td>
        <td>
                    <input name="mail_port" type="text" value="<%{if $out.email_setting.smtp_port==''}%>25<%{else}%><%{$out.email_setting.smtp_port}%><%{/if}%>" size="5" />
			</td>
      </tr>	      

		 <tr>
        <td class="label" valign="top">邮件回复地址:</td>
        <td><input name="mail_reply" type="text" value="<%{if $out.email_setting.reply}%><%{$out.email_setting.reply}%><%{else}%><%{$out.admin_email}%><%{/if}%>" size="40" /></td>
     	 </tr> 
		<tr>
        <td class="label" valign="top">发件人姓名:</td>
        <td><input name="from_name"  value="<%{$out.email_setting.from_name}%>" size="40" /></td>
     	 </tr>			
		<table>
		<table id='smtp_box' style='display:<%{if $out.is_mail}%>none;<%{/if}%>'>
		<tr><td></td><td>
		 <span class="notice-span" style="display:block"  id="noticemail_service">如果您选择了采用服务器内置的 Mail 服务，您不需要填写下面的内容</span>
			</td>
		 </tr>
		 <tr>
        <td class="label" valign="top">
		  发送邮件服务器地址(SMTP):
		  </td>
        <td>
                    <input name="smtp[host]" type="text" value="<%{if $out.email_setting.smtp.host==''}%>localhost<%{else}%><%{$out.email_setting.smtp.host}%><%{/if}%>" size="40" />
                              <br />
          <span class="notice-span" style="display:block"  id="noticesmtp_host">邮件服务器主机地址。如果本机可以发送邮件则设置为localhost</span>
                  </td>
      </tr>
       
              <tr>
        <td class="label" valign="top">
		  邮件发送帐号:
		  </td>
        <td>
                    <input name="smtp[user]" type="text" value="<%{$out.email_setting.smtp.user}%>" size="40"  />

                              <br />
          <span class="notice-span" style="display:block"  id="noticesmtp_user">发送邮件所需的认证帐号，如果没有就为空着</span>
                  </td>
      </tr>
              <tr>
        <td class="label" valign="top">
			帐号密码:
		  </td>
        <td>
        <input name="smtp[pass]" type="password" value="<%{$out.email_setting.smtp.pass}%>" size="40" />

                            </td>
      </tr>
     	</table>  
		<table>
		<tr>
      <td class="label"></td>
      <td>
      	<input type='checkbox'   name='is_email_test'  onclick=if(this.checked){$("#email_test_addr_id").show();}else{$("#email_test_addr_id").hide();}>发送测试邮件 
			<p id='email_test_addr_id' style='display:none;'>
			<input type="text" name="email_test_addr" size="30" />&nbsp;&nbsp;<span style='color:#9CACAF' onmouseover='this.style.color="#192E32";' onmouseout='this.style.color="#9CACAF";'>请输入您要发送的邮件地址</span> 
			</p>
      </td>
    </tr>
    <tr>
      <td align="center" colspan="2">
        <input name="submit" type="submit" value=" 提交 " class="button" />
      </td>
    </tr>
  </table>
</div>
</form>
</body>
</html>

