회원전체메일 오류 해결책 없나요 ㅜㅜ 정보
그누보드 회원전체메일 오류 해결책 없나요 ㅜㅜ
본문
![]() |
작업 취소 |
Internet Explorer로 요청한 웹 페이지에 연결할 수 없습니다. 일시적으로 페이지를 사용할 수 없습니다. | |
다음을 시도해 보십시오.
Internet Explorer |
댓글 전체
그 페이지가 문제가 아니네요...
문제는 mailsend.php까지 링크되는 표시가 스크룰에 나타납니다...
거기서 다음페이지 mailsend.php페이가 뜨면서 ++++++가 되어야하는데요...
그페이지가 안뜹니다... 그냥 mail.php페이지에서 아래 진행표시만 나타나다가 위와 같은표시가 나옵니다.
그런데 20명 정도의 메일을 보낼때는 잘 뜨더라고요....
그런데 200명정도 보내면 안된다고 보시면됩니다...ㅜㅜ
몇달째 안풀려서 이렇게 문의 드립니다...
소스 공개하겠습니다.
====== mail.php====================================
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "STYLE");
define("_GNUADMIN_", "DEFAULT");
include "./bbs/admin/admin.lib.php";
$menu = "menu020";
include "./bbs/admin/head.php";
// SPAW 관련 설정
$spaw_root = $default[de_web]; // 절대경로 입력
?>
<table width=100% align=center cellpadding=3 cellspacing=1 class=tablebg>
<form name=fmbmail method=post action='<?="./?doc=bbs/admin/mailsend.php"?>'>
<colgroup width=250 align=center>
<colgroup width='' align=center>
<tr>
<td class='subjech subjectbh ht' align=center><font color="white">메일리스트</td>
</tr>
<tr>
<td class='content contentbg'>
<br><br>
<p align="left"><font color="#FF6600">▶</font> 메일링 서비스 미가입자, 탈퇴, 접근차단 회원은 제외
<textarea name='emails' class=textarea rows='20' style='width:99%;' required itemname='e-mail'></textarea>
</td>
</tr>
<tr>
<td class='subjech subjectbh ht' align=center><font color="white">e-mail 제목, 내용</td>
</tr>
<tr>
<td class='content contentbg'>
<table width=100% align=center cellpadding=3 cellspacing=1 class=tablebg>
<tr>
<td height=40>제목</td>
<td><input type=text class=input name=subject size=60 required itemname='제목'></td>
<td>
<input type=radio name=text value='1' checked>HTML
<input type=checkbox name=test value='1'>테스트
</td>
</tr></table>
<?
include $spaw_root."spaw_control.class.php";
$sw = new SPAW_Wysiwyg('content',$write[content]);
$sw->show();
?>
</td>
</tr>
</table>
<p>
<div align=center>
<input type=submit value=' 확 인 '>
</div>
</form>
<?
$mail = "";
$return = "";
$sql = " select mb_email from $cfg[table_member]
where mb_mailling = '1'
and mb_leave_date = ''
and mb_intercept_date = '' ";
$result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++) {
if ($row[mb_email]) {
$mail .= $return . $row[mb_email];
$return = "\\n";
}
}
mysql_free_result($result);
echo "<script language='javascript'>document.fmbmail.emails.value = '$mail';</script>";
include "./bbs/admin/tail.php";
?>
=============mailsend.php==================================
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "STYLE");
define("_GNUADMIN_", "DEFAULT");
include "./bbs/admin/admin.lib.php";
include "./lib/mailer.lib.php";
echo "<span style='font-size:9pt; line-height:150%;'>";
echo "<p>메일 발송중 ...<p>(20건씩 보내고 20초를 쉽니다. [끝] 이라는 단어가 나오기 전에는 중간에 중지하지 마세요.)<p>";
flush();
$emailarr = explode("\n", addslashes(trim($_POST[emails])));
$subject = stripslashes($subject);
$content = "
<style>
a:link { text-decoration:none; }
a:visited { text-decoration:none; }
a:active { text-decoration:none; }
a:hover { text-decoration:none; }
</style>
</head>
<body bgcolor='white' text='black' link='blue' vlink='purple' alink='red'>
<table align='center' cellpadding='0' cellspacing='0' width='700'>
<tr>
<td>
<p><a href='http://www.mymother.co.kr' target='_blank'><img src='http://www.mymother.co.kr/mail/images/my_mail_02.gif' border='0'></a></p>
</td>
<td>
<p><img src='http://www.mymother.co.kr/mail/images/my_mail_03.gif' width='583' height='66' border='0'></p>
</td>
</tr>
<tr>
<td colspan='2'>
<p><img src='http://www.mymother.co.kr/mail/images/my_mail_05.gif' width='700' height='179' border='0'></p>
</td>
</tr>
<tr>
<td align='center' valign='top' colspan='2' background='http://www.mymother.co.kr/mail/images/my_mail_06.gif' style='padding:5;'>
<table align='center' cellpadding='0' cellspacing='0' width='650' height='40' style='margin-bottom:5;'>
<tr>
<td style='font-size:12pt; color:rgb(51,102,153);' bgcolor='#F3F3F3'>
<p><img src='http://www.mymother.co.kr/mail/images/my_mail_09.gif' border='0'></p>
</td>
</tr>
<tr>
<td style='font-size:12pt; color:rgb(51,102,153); padding-right:10; padding-left:10;' bgcolor='#F3F3F3' background='http://www.mymother.co.kr/mail/images/my_mail_11.gif'>
<b>$subject</b>
</td>
</tr>
<tr>
<td style='font-size:12pt; color:rgb(51,102,153);' bgcolor='#F3F3F3'>
<p><img src='http://www.mymother.co.kr/mail/images/my_mail_13.gif' border='0'></p>
</td>
</tr>
</table>
<table align='center' cellpadding='0' cellspacing='0' width='650'>
<tr>
<td>
<p><img src='http://www.mymother.co.kr/mail/images/my_mail_09.gif' border='0'></p>
</td>
</tr>
<tr>
<td background='http://www.mymother.co.kr/mail/images/my_mail_11.gif' style='padding-right:20; padding-left:20;'>
".stripslashes($content)."
<p align='center' style='margin-top:10;'>
</td>
</tr>
<tr>
<td>
<p><img src='http://www.mymother.co.kr/mail/images/my_mail_13.gif' border='0'></p>
</td>
</tr>
</table>
<table align='center' cellpadding='0' cellspacing='0' width='650' height='40' style='margin-top:5;'>
<tr>
<td style='font-size:12pt; color:rgb(51,102,153);'>
<img src='http://mymother.co.kr/mail/images/my_mail_19.gif' border='0'>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align='center' valign='top' colspan='2' background='http://www.mymother.co.kr/mail/images/my_mail_06.gif' style='padding:5;'>
<table align='center' style='border-collapse:collapse;' cellpadding='0' cellspacing='0' width='650'>
<tr>
<td width='222' align='center' style='border-top-width:2; border-left-width:2; border-top-color:rgb(240,240,240); border-left-color:rgb(240,240,240); border-top-style:solid; border-left-style:solid;'>
<p><a href='http://www.mymother.co.kr/board/?doc=bbs/gnuboard.php&bo_table=my_board_01' target='_blank'><img src='http://www.mymother.co.kr/mail/images/mail_list_01.gif' border='0'></a></p>
</td>
<td width='222' align='center' style='border-top-width:2; border-top-color:rgb(240,240,240); border-top-style:solid;'>
<p><a href='http://www.mymother.co.kr/board/?doc=bbs/gnuboard.php&bo_table=my_board_06' target='_blank'><img src='http://www.mymother.co.kr/mail/images/mail_list_02.gif' border='0'></a></p>
</td>
<td width='222' align='center' style='border-top-width:2; border-right-width:2; border-top-color:rgb(240,240,240); border-right-color:rgb(240,240,240); border-top-style:solid; border-right-style:solid;'>
<p><a href='http://www.mymother.co.kr/board/?doc=bbs/gnuboard.php&bo_table=my_board_08' target='_blank'><img src='http://www.mymother.co.kr/mail/images/mail_list_03.gif' border='0'></a></p>
</td>
</tr>
<tr>
<td width='222' style='border-left-width:2; border-left-color:rgb(240,240,240); border-left-style:solid;'>
<TABLE cellSpacing=0 cellPadding=2 width='210' align=center valign='top' bgcolor='#FAFAFA'>
<TBODY>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>어머니는
그래도 되는 줄 알았습.… </font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>어머님,아버님......혼자서
차례를… </font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>어머님!
</font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>하늘나라에
계신 어머님에게...</font>. </span></TD></TR></TBODY></TABLE></TD></TR>
</TBODY></TABLE>
</td>
<td width='222'>
<TABLE cellSpacing=0 cellPadding=2 width='210' align=center valign='top' bgcolor='#FAFAFA'>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>사랑하는 어머니..
</font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>이제는 뵐 수 없는
나의 어머니 </font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>그대
가끔씩은 늙으신 어머님의 … </font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>병상의
어머님을 위한 기도</font></span></TD></TR></TBODY></TABLE></TD></TR>
</TBODY></TABLE>
</td>
<td width='222' style='border-right-width:2; border-right-color:rgb(240,240,240); border-right-style:solid;'>
<TABLE cellSpacing=0 cellPadding=2 width='210' align=center valign='top' bgcolor='#FAFAFA'>
<TBODY>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>노래-우리어머니<이효정>
</font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>김영림
<불효자는 웁니다> </font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>태진아
<어머니> </font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>이미자
<불효자는 웁니다></font></span><font color='#666666'> </font></TD></TR></TBODY></TABLE></TD></TR>
</TBODY></TABLE>
</td>
</tr>
<tr>
<td width='222' align='center' style='border-left-width:2; border-left-color:rgb(240,240,240); border-left-style:solid;'>
<p><a href='http://www.mymother.co.kr/board/?doc=bbs/gnuboard.php&bo_table=my_board_09' target='_blank'><img src='http://www.mymother.co.kr/mail/images/mail_list_04.gif' width='210' height='37' border='0'></a></p>
</td>
<td width='222' align='center'>
<p><a href='http://www.mymother.co.kr/board/?doc=bbs/gnuboard.php&bo_table=my_board_11' target='_blank'><img src='http://www.mymother.co.kr/mail/images/mail_list_05.gif' width='210' height='37' border='0'></a></p>
</td>
<td width='222' align='center' style='border-right-width:2; border-right-color:rgb(240,240,240); border-right-style:solid;'>
<p><a href='http://www.mymother.co.kr/board/?doc=bbs/gnuboard.php&bo_table=my_board_13' target='_blank'><img src='http://www.mymother.co.kr/mail/images/mail_list_06.gif' width='210' height='37' border='0'></a></p>
</td>
</tr>
<tr>
<td width='222' style='border-bottom-width:2; border-left-width:2; border-bottom-color:rgb(240,240,240); border-left-color:rgb(240,240,240); border-bottom-style:solid; border-left-style:solid;'>
<TABLE cellSpacing=0 cellPadding=2 width='210' align=center valign='top' bgcolor='#FAFAFA'>
<TBODY>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>술을 뿌려 생선의
냄새를 제거 하… </font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>잡초가 무성한곳을
국수 삶은 물… </font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>양념통에 쌀알을
넣어 습기제거… </font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>껍질간 바나나를
레몬즙을 바르 …</font></span></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
</td>
<td width='222' style='border-bottom-width:2; border-bottom-color:rgb(240,240,240); border-bottom-style:solid;'>
<TABLE cellSpacing=0 cellPadding=2 width='210' align=center valign='top' bgcolor='#FAFAFA'>
<TBODY>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>김치주먹밥
</font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD height='15'><A 김치 콩나물 밥'><span style='font-size:9pt;'><font color='#666666'>김치 콩나물밥
</font></span></A></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>60년대 어머니의
도시락 </font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>어머니와 수제비
된장국</font></span><font color='#666666'> </font></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
</td>
<td width='222' style='border-right-width:2; border-bottom-width:2; border-right-color:rgb(240,240,240); border-bottom-color:rgb(240,240,240); border-right-style:solid; border-bottom-style:solid;'>
<TABLE cellSpacing=0 cellPadding=2 width='210' align=center valign='top' bgcolor='#FAFAFA'>
<TBODY>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>미친
며느리....... </font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>어머님의 하루
</font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>어머님의 일상
</font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>어머니의 손</font></span><font color='#666666'>
</font></TD></TR></TBODY></TABLE></TD></TR>
</TBODY></TABLE>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan='2'>
<p><img src='http://www.mymother.co.kr/mail/images/my_mail_15.gif' border='0'></p>
</td>
</tr>
</table>
<table style='margin-top:5;' align='center' cellpadding='0' cellspacing='0' width='700' height='50' bgcolor='#F0F0F0'>
<tr>
<td width='287' style='font-size:9pt; padding:5;'>
<p style='margin-top:3; margin-bottom:3;' align='right'><img src='http://www.mymother.co.kr/mail/images/mail_batt.gif' width='141' height='33' border='0'>
<A href='http://www.mymother.co.kr/board/?doc=bbs/gbform.php&w=&bo_table=my_board_01'><img src='http://mymother.co.kr/mail/images/mail_batt2.gif' width='141' height='33' border='0'></a></p>
</td>
<td width='383' style='font-size:9pt; padding:10;'>
<p style='margin-top:3; margin-bottom:3;' align='right'><A href='http://www.mymother.co.kr/board/policy.php' target='_blank'><font color='#999999'>개인정보보호정책</font></A><font color='#999999'>
| </font><A href='http://www.mymother.co.kr/board/age.php' target='_blank'><font color='#999999'>이용약관</font></A><font color='#999999'> | </font><A href='mailto:*** 개인정보보호를 위한 이메일주소 노출방지 ***'><font color='#999999'>운영자에게</font></A>
<p style='margin-top:3; margin-bottom:3;' align='right'>Copyright(c) 2003 <A
href='http://www.mymother.co.kr'><U>Mymother</U></A>. All rights
reserved.</p>
</td>
</tr>
</table>
</body>
";
$cnt = 0;
for ($i=0; $i<count($emailarr); $i++) {
if ($test) {
$email = $member[mb_email];
} else {
$email = $emailarr[$i];
}
$sw = ereg("[0-9a-zA-Z_]+(\.[0-9a-zA-Z_]+)*@[0-9a-zA-Z_]+(\.[0-9a-zA-Z_]+)*", $email);
// 올바른 메일 주소만
if ($sw == true) {
$cnt++;
mailer($member[mb_name], $member[mb_email], $email, $subject, $content, $text);
echo "+";
flush();
if ($cnt % 20 == 0) {
// 20통씩 보내고 몇초간 쉰다.
// 잘 보내지지 않는다고 생각되면 이 부분의 수치를 높여주세요.
sleep(20);
echo "<br>";
}
if ($test) {
break;
}
}
}
?>
<p><?=$cnt?>건 발송
<p>[끝]
</span>
<p><input type=button value=' 뒤 로 ' onclick='history.go(-1);'>
문제는 mailsend.php까지 링크되는 표시가 스크룰에 나타납니다...
거기서 다음페이지 mailsend.php페이가 뜨면서 ++++++가 되어야하는데요...
그페이지가 안뜹니다... 그냥 mail.php페이지에서 아래 진행표시만 나타나다가 위와 같은표시가 나옵니다.
그런데 20명 정도의 메일을 보낼때는 잘 뜨더라고요....
그런데 200명정도 보내면 안된다고 보시면됩니다...ㅜㅜ
몇달째 안풀려서 이렇게 문의 드립니다...
소스 공개하겠습니다.
====== mail.php====================================
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "STYLE");
define("_GNUADMIN_", "DEFAULT");
include "./bbs/admin/admin.lib.php";
$menu = "menu020";
include "./bbs/admin/head.php";
// SPAW 관련 설정
$spaw_root = $default[de_web]; // 절대경로 입력
?>
<table width=100% align=center cellpadding=3 cellspacing=1 class=tablebg>
<form name=fmbmail method=post action='<?="./?doc=bbs/admin/mailsend.php"?>'>
<colgroup width=250 align=center>
<colgroup width='' align=center>
<tr>
<td class='subjech subjectbh ht' align=center><font color="white">메일리스트</td>
</tr>
<tr>
<td class='content contentbg'>
<br><br>
<p align="left"><font color="#FF6600">▶</font> 메일링 서비스 미가입자, 탈퇴, 접근차단 회원은 제외
<textarea name='emails' class=textarea rows='20' style='width:99%;' required itemname='e-mail'></textarea>
</td>
</tr>
<tr>
<td class='subjech subjectbh ht' align=center><font color="white">e-mail 제목, 내용</td>
</tr>
<tr>
<td class='content contentbg'>
<table width=100% align=center cellpadding=3 cellspacing=1 class=tablebg>
<tr>
<td height=40>제목</td>
<td><input type=text class=input name=subject size=60 required itemname='제목'></td>
<td>
<input type=radio name=text value='1' checked>HTML
<input type=checkbox name=test value='1'>테스트
</td>
</tr></table>
<?
include $spaw_root."spaw_control.class.php";
$sw = new SPAW_Wysiwyg('content',$write[content]);
$sw->show();
?>
</td>
</tr>
</table>
<p>
<div align=center>
<input type=submit value=' 확 인 '>
</div>
</form>
<?
$mail = "";
$return = "";
$sql = " select mb_email from $cfg[table_member]
where mb_mailling = '1'
and mb_leave_date = ''
and mb_intercept_date = '' ";
$result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++) {
if ($row[mb_email]) {
$mail .= $return . $row[mb_email];
$return = "\\n";
}
}
mysql_free_result($result);
echo "<script language='javascript'>document.fmbmail.emails.value = '$mail';</script>";
include "./bbs/admin/tail.php";
?>
=============mailsend.php==================================
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
define("_DOCTYPE_", "STYLE");
define("_GNUADMIN_", "DEFAULT");
include "./bbs/admin/admin.lib.php";
include "./lib/mailer.lib.php";
echo "<span style='font-size:9pt; line-height:150%;'>";
echo "<p>메일 발송중 ...<p>(20건씩 보내고 20초를 쉽니다. [끝] 이라는 단어가 나오기 전에는 중간에 중지하지 마세요.)<p>";
flush();
$emailarr = explode("\n", addslashes(trim($_POST[emails])));
$subject = stripslashes($subject);
$content = "
<style>
a:link { text-decoration:none; }
a:visited { text-decoration:none; }
a:active { text-decoration:none; }
a:hover { text-decoration:none; }
</style>
</head>
<body bgcolor='white' text='black' link='blue' vlink='purple' alink='red'>
<table align='center' cellpadding='0' cellspacing='0' width='700'>
<tr>
<td>
<p><a href='http://www.mymother.co.kr' target='_blank'><img src='http://www.mymother.co.kr/mail/images/my_mail_02.gif' border='0'></a></p>
</td>
<td>
<p><img src='http://www.mymother.co.kr/mail/images/my_mail_03.gif' width='583' height='66' border='0'></p>
</td>
</tr>
<tr>
<td colspan='2'>
<p><img src='http://www.mymother.co.kr/mail/images/my_mail_05.gif' width='700' height='179' border='0'></p>
</td>
</tr>
<tr>
<td align='center' valign='top' colspan='2' background='http://www.mymother.co.kr/mail/images/my_mail_06.gif' style='padding:5;'>
<table align='center' cellpadding='0' cellspacing='0' width='650' height='40' style='margin-bottom:5;'>
<tr>
<td style='font-size:12pt; color:rgb(51,102,153);' bgcolor='#F3F3F3'>
<p><img src='http://www.mymother.co.kr/mail/images/my_mail_09.gif' border='0'></p>
</td>
</tr>
<tr>
<td style='font-size:12pt; color:rgb(51,102,153); padding-right:10; padding-left:10;' bgcolor='#F3F3F3' background='http://www.mymother.co.kr/mail/images/my_mail_11.gif'>
<b>$subject</b>
</td>
</tr>
<tr>
<td style='font-size:12pt; color:rgb(51,102,153);' bgcolor='#F3F3F3'>
<p><img src='http://www.mymother.co.kr/mail/images/my_mail_13.gif' border='0'></p>
</td>
</tr>
</table>
<table align='center' cellpadding='0' cellspacing='0' width='650'>
<tr>
<td>
<p><img src='http://www.mymother.co.kr/mail/images/my_mail_09.gif' border='0'></p>
</td>
</tr>
<tr>
<td background='http://www.mymother.co.kr/mail/images/my_mail_11.gif' style='padding-right:20; padding-left:20;'>
".stripslashes($content)."
<p align='center' style='margin-top:10;'>
</td>
</tr>
<tr>
<td>
<p><img src='http://www.mymother.co.kr/mail/images/my_mail_13.gif' border='0'></p>
</td>
</tr>
</table>
<table align='center' cellpadding='0' cellspacing='0' width='650' height='40' style='margin-top:5;'>
<tr>
<td style='font-size:12pt; color:rgb(51,102,153);'>
<img src='http://mymother.co.kr/mail/images/my_mail_19.gif' border='0'>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align='center' valign='top' colspan='2' background='http://www.mymother.co.kr/mail/images/my_mail_06.gif' style='padding:5;'>
<table align='center' style='border-collapse:collapse;' cellpadding='0' cellspacing='0' width='650'>
<tr>
<td width='222' align='center' style='border-top-width:2; border-left-width:2; border-top-color:rgb(240,240,240); border-left-color:rgb(240,240,240); border-top-style:solid; border-left-style:solid;'>
<p><a href='http://www.mymother.co.kr/board/?doc=bbs/gnuboard.php&bo_table=my_board_01' target='_blank'><img src='http://www.mymother.co.kr/mail/images/mail_list_01.gif' border='0'></a></p>
</td>
<td width='222' align='center' style='border-top-width:2; border-top-color:rgb(240,240,240); border-top-style:solid;'>
<p><a href='http://www.mymother.co.kr/board/?doc=bbs/gnuboard.php&bo_table=my_board_06' target='_blank'><img src='http://www.mymother.co.kr/mail/images/mail_list_02.gif' border='0'></a></p>
</td>
<td width='222' align='center' style='border-top-width:2; border-right-width:2; border-top-color:rgb(240,240,240); border-right-color:rgb(240,240,240); border-top-style:solid; border-right-style:solid;'>
<p><a href='http://www.mymother.co.kr/board/?doc=bbs/gnuboard.php&bo_table=my_board_08' target='_blank'><img src='http://www.mymother.co.kr/mail/images/mail_list_03.gif' border='0'></a></p>
</td>
</tr>
<tr>
<td width='222' style='border-left-width:2; border-left-color:rgb(240,240,240); border-left-style:solid;'>
<TABLE cellSpacing=0 cellPadding=2 width='210' align=center valign='top' bgcolor='#FAFAFA'>
<TBODY>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>어머니는
그래도 되는 줄 알았습.… </font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>어머님,아버님......혼자서
차례를… </font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>어머님!
</font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>하늘나라에
계신 어머님에게...</font>. </span></TD></TR></TBODY></TABLE></TD></TR>
</TBODY></TABLE>
</td>
<td width='222'>
<TABLE cellSpacing=0 cellPadding=2 width='210' align=center valign='top' bgcolor='#FAFAFA'>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>사랑하는 어머니..
</font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>이제는 뵐 수 없는
나의 어머니 </font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>그대
가끔씩은 늙으신 어머님의 … </font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>병상의
어머님을 위한 기도</font></span></TD></TR></TBODY></TABLE></TD></TR>
</TBODY></TABLE>
</td>
<td width='222' style='border-right-width:2; border-right-color:rgb(240,240,240); border-right-style:solid;'>
<TABLE cellSpacing=0 cellPadding=2 width='210' align=center valign='top' bgcolor='#FAFAFA'>
<TBODY>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>노래-우리어머니<이효정>
</font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>김영림
<불효자는 웁니다> </font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>태진아
<어머니> </font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>이미자
<불효자는 웁니다></font></span><font color='#666666'> </font></TD></TR></TBODY></TABLE></TD></TR>
</TBODY></TABLE>
</td>
</tr>
<tr>
<td width='222' align='center' style='border-left-width:2; border-left-color:rgb(240,240,240); border-left-style:solid;'>
<p><a href='http://www.mymother.co.kr/board/?doc=bbs/gnuboard.php&bo_table=my_board_09' target='_blank'><img src='http://www.mymother.co.kr/mail/images/mail_list_04.gif' width='210' height='37' border='0'></a></p>
</td>
<td width='222' align='center'>
<p><a href='http://www.mymother.co.kr/board/?doc=bbs/gnuboard.php&bo_table=my_board_11' target='_blank'><img src='http://www.mymother.co.kr/mail/images/mail_list_05.gif' width='210' height='37' border='0'></a></p>
</td>
<td width='222' align='center' style='border-right-width:2; border-right-color:rgb(240,240,240); border-right-style:solid;'>
<p><a href='http://www.mymother.co.kr/board/?doc=bbs/gnuboard.php&bo_table=my_board_13' target='_blank'><img src='http://www.mymother.co.kr/mail/images/mail_list_06.gif' width='210' height='37' border='0'></a></p>
</td>
</tr>
<tr>
<td width='222' style='border-bottom-width:2; border-left-width:2; border-bottom-color:rgb(240,240,240); border-left-color:rgb(240,240,240); border-bottom-style:solid; border-left-style:solid;'>
<TABLE cellSpacing=0 cellPadding=2 width='210' align=center valign='top' bgcolor='#FAFAFA'>
<TBODY>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>술을 뿌려 생선의
냄새를 제거 하… </font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>잡초가 무성한곳을
국수 삶은 물… </font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>양념통에 쌀알을
넣어 습기제거… </font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>껍질간 바나나를
레몬즙을 바르 …</font></span></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
</td>
<td width='222' style='border-bottom-width:2; border-bottom-color:rgb(240,240,240); border-bottom-style:solid;'>
<TABLE cellSpacing=0 cellPadding=2 width='210' align=center valign='top' bgcolor='#FAFAFA'>
<TBODY>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>김치주먹밥
</font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD height='15'><A 김치 콩나물 밥'><span style='font-size:9pt;'><font color='#666666'>김치 콩나물밥
</font></span></A></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>60년대 어머니의
도시락 </font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>어머니와 수제비
된장국</font></span><font color='#666666'> </font></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
</td>
<td width='222' style='border-right-width:2; border-bottom-width:2; border-right-color:rgb(240,240,240); border-bottom-color:rgb(240,240,240); border-right-style:solid; border-bottom-style:solid;'>
<TABLE cellSpacing=0 cellPadding=2 width='210' align=center valign='top' bgcolor='#FAFAFA'>
<TBODY>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>미친
며느리....... </font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>어머님의 하루
</font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>어머님의 일상
</font></span></TD></TR></TBODY></TABLE></TD></TR>
<TR height=22>
<TD align=middle width=10><span style='font-size:9pt;'><font color='#FF3300'><b>ㆍ</b></font></span></TD>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width='100%' align=center>
<TBODY>
<TR>
<TD><span style='font-size:9pt;'><font color='#666666'>어머니의 손</font></span><font color='#666666'>
</font></TD></TR></TBODY></TABLE></TD></TR>
</TBODY></TABLE>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan='2'>
<p><img src='http://www.mymother.co.kr/mail/images/my_mail_15.gif' border='0'></p>
</td>
</tr>
</table>
<table style='margin-top:5;' align='center' cellpadding='0' cellspacing='0' width='700' height='50' bgcolor='#F0F0F0'>
<tr>
<td width='287' style='font-size:9pt; padding:5;'>
<p style='margin-top:3; margin-bottom:3;' align='right'><img src='http://www.mymother.co.kr/mail/images/mail_batt.gif' width='141' height='33' border='0'>
<A href='http://www.mymother.co.kr/board/?doc=bbs/gbform.php&w=&bo_table=my_board_01'><img src='http://mymother.co.kr/mail/images/mail_batt2.gif' width='141' height='33' border='0'></a></p>
</td>
<td width='383' style='font-size:9pt; padding:10;'>
<p style='margin-top:3; margin-bottom:3;' align='right'><A href='http://www.mymother.co.kr/board/policy.php' target='_blank'><font color='#999999'>개인정보보호정책</font></A><font color='#999999'>
| </font><A href='http://www.mymother.co.kr/board/age.php' target='_blank'><font color='#999999'>이용약관</font></A><font color='#999999'> | </font><A href='mailto:*** 개인정보보호를 위한 이메일주소 노출방지 ***'><font color='#999999'>운영자에게</font></A>
<p style='margin-top:3; margin-bottom:3;' align='right'>Copyright(c) 2003 <A
href='http://www.mymother.co.kr'><U>Mymother</U></A>. All rights
reserved.</p>
</td>
</tr>
</table>
</body>
";
$cnt = 0;
for ($i=0; $i<count($emailarr); $i++) {
if ($test) {
$email = $member[mb_email];
} else {
$email = $emailarr[$i];
}
$sw = ereg("[0-9a-zA-Z_]+(\.[0-9a-zA-Z_]+)*@[0-9a-zA-Z_]+(\.[0-9a-zA-Z_]+)*", $email);
// 올바른 메일 주소만
if ($sw == true) {
$cnt++;
mailer($member[mb_name], $member[mb_email], $email, $subject, $content, $text);
echo "+";
flush();
if ($cnt % 20 == 0) {
// 20통씩 보내고 몇초간 쉰다.
// 잘 보내지지 않는다고 생각되면 이 부분의 수치를 높여주세요.
sleep(20);
echo "<br>";
}
if ($test) {
break;
}
}
}
?>
<p><?=$cnt?>건 발송
<p>[끝]
</span>
<p><input type=button value=' 뒤 로 ' onclick='history.go(-1);'>
링크가 잘못되어나부네요 소스를 공개하심이..
mail.php 요파일에서 mailsend.php로 이동하는 과정이 잘못되어나부네여...
파일이 없다고 하니..
<form name=fmbmail method=post action='<?="./?doc=bbs/admin/mailsend.php"?>'>
이런식으로 되어 있지 안나여?
혹시 주소를 바꾼건가여?
mail.php 요파일에서 mailsend.php로 이동하는 과정이 잘못되어나부네여...
파일이 없다고 하니..
<form name=fmbmail method=post action='<?="./?doc=bbs/admin/mailsend.php"?>'>
이런식으로 되어 있지 안나여?
혹시 주소를 바꾼건가여?