?? mail_send.php
字號:
<?php include admintpl('header'); ?>
<script type="text/javascript" src="<?=PHPCMS_PATH?>fckeditor/fckeditor.js"></script>
<script type="text/javascript">
var editorBasePath = '<?=PHPCMS_PATH?>fckeditor/';
var ChannelId = 0 ;
</script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor('mbody') ;
oFCKeditor.BasePath = editorBasePath ;
oFCKeditor.ReplaceTextarea() ;
}
</script>
<?php echo $menu; ?>
<table cellpadding="2" cellspacing="1" border="0" align=center class="tableBorder" >
<tr>
<td class="submenu" align=center>提示信息</td>
</tr>
<tr>
<td class="tablerow">
選擇Email列表文件,填寫要發(fā)送郵件的標(biāo)題和內(nèi)容,點發(fā)送即可。
</td>
</tr>
</table>
<br />
<form id="formsend" name="formsend" method="post" action="?mod=<?php echo $mod; ?>&file=<?php echo $file; ?>&action=send&submit=1">
<table border="0" align="center" cellpadding="2" cellspacing="1" class="tableborder">
<tr>
<th colspan="2">Email文件列表</th>
</tr>
<?php
if(is_array($mailfiles))
{
?>
<tr>
<td class="tablerow">選擇郵件列表文件</td>
<td class="tablerow">
<select name="mail" id="mail">
<?php
foreach($mailfiles as $i=>$mailfile)
{
$selected = ($mailfile==$mail || $mailfile==$filename) ? "selected" : "";
?>
<option value="<?php echo $mailfile; ?>" <?php echo $selected; ?> ><?php echo $mailfile; ?></option>
<?php
}
?>
</select>
</td>
</tr>
<?php
}
?>
<tr>
<td class="tablerow">發(fā)送方式</td>
<td class="tablerow">
<input type="radio" name="msendtype" value="smtp" <?php if( !$msendtype || $msendtype=='smtp') echo 'checked="checked"'; ?> />
SMTP方式 (<a href="?file=setting" title="在郵件設(shè)置中設(shè)置SMTP參數(shù)" >設(shè)置SMTP參數(shù)</a>)
<input type="radio" name="msendtype" value="mail" <?php if((strtoupper(substr(PHP_OS, 0, 3))!='WIN') || $msendtype=='mail') echo 'checked="checked"'; ?> />Mail函數(shù)(非Windows) </td>
</tr>
<tr>
<td class="tablerow">每輪發(fā)送數(shù)</td>
<td class="tablerow">
<input name="mnum" type="text" id="mnum" value="<?php if($mnum) echo $mnum; else echo 10; ?>" size="10" maxlength="5" />
建議設(shè)置為 100 左右 </td>
</tr>
<tr>
<td class="tablerow">郵件標(biāo)題</td>
<td class="tablerow">
<input name="msubject" type="text" id="msubject" value="<?php echo $msubject;?>" size="62" onclick="javascript:msubject.select();"/> </td>
</tr>
<tr>
<td class="tablerow">郵件格式</td>
<td class="tablerow">
<input name="mformat" type="radio" value="HTML" <?php if(!$mformat ||$mformat=='HTML') echo 'checked="checked"'; ?> />
超文本(HTML) <input type="radio" name="mformat" value="TXT" <?php if($mformat=='TXT') echo 'checked="checked"'; ?> />
純文本(TXT)</td>
</tr>
<tr>
<td class="tablerow">郵件內(nèi)容</td>
<td class="tablerow">
<textarea name="mbody" id="mbody" style="display:none"><?php if($mbody) echo $mbody; else echo '在此輸入郵件內(nèi)容'; ?></textarea>
</td>
</tr>
<tr>
<td class="tablerow"></td>
<td class="tablerow"><input type="submit" name="Submit" id="Submit" value=" 發(fā) 送 " />
<input type="reset" name="Reset" id="Reset" value=" 清 除 " /></td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -