Commit bb9cdc57b83f191e34ec1ad1afc3e14d2605f418
Merge branch 'master' of https://gitlab.media-tek.jp/ASP/mail_ni_pon
Showing
25 changed files
with
104 additions
and
83 deletions
| ... | ... | @@ -15,6 +15,7 @@ include("./include/session_start.inc"); |
| 15 | 15 | include("./include/SessionChk2.inc"); |
| 16 | 16 | include("./include/jcode.phps"); |
| 17 | 17 | include("./include/mime.php"); |
| 18 | +include("./include/mtcnews.inc"); | |
| 18 | 19 | |
| 19 | 20 | //********** 接続処理 **********// |
| 20 | 21 | include("./include/dbcon2.inc"); |
| ... | ... | @@ -95,7 +96,7 @@ $strComment .= "\n"; |
| 95 | 96 | $strComment = jcodeconvert($strComment, 1, 3); |
| 96 | 97 | |
| 97 | 98 | $Header1 = ""; |
| 98 | -$Headers['From']=$strSubmitAdd; | |
| 99 | +$Headers['From']=$NOREPLY_ADDR; | |
| 99 | 100 | $Headers['X-Mailer']="PHP/".phpversion(); //メール送信プログラムの表示 |
| 100 | 101 | //PEARのmimeクラス設定 |
| 101 | 102 | $mime = new Mail_mime("\r\n"); |
| ... | ... | @@ -109,7 +110,7 @@ $Headers = $mime->headers($Headers); |
| 109 | 110 | while (list($key,$val)=each($Headers)) { |
| 110 | 111 | $Header1 .= $key.": ".$val."\r\n"; |
| 111 | 112 | } |
| 112 | -$intBool2 = mail($strToMob,$strSubject,$strComment,$Header1,"-f ".$strSubmitAdd);//登録者に送信 | |
| 113 | +$intBool2 = mail($strToMob,$strSubject,$strComment,$Header1,"-f ".$NOREPLY_ADDR);//登録者に送信 | |
| 113 | 114 | if(!$intBool2){ |
| 114 | 115 | echo("メール送信に失敗しました。<tr>"); |
| 115 | 116 | echo "宛先:".$strToMob."<BR>"; |
| ... | ... | @@ -127,7 +128,7 @@ $Subject_name = "め〜るNiポン ポイント申し込みがありました"; |
| 127 | 128 | $strSubject = "=?iso-2022-jp?B?" . base64_encode(jcodeconvert($Subject_name, 0, 3)) . "?="; |
| 128 | 129 | $str = "団体名:".$PHP_POST_DB_USER_NAME."\n\n"; |
| 129 | 130 | $strComment = jcodeconvert($str, 1, 3).$strComment; |
| 130 | -$intBool2 = mail($strToMob,$strSubject,$strComment,$Header1,"-f ".$strSubmitAdd);//登録者に送信 | |
| 131 | +$intBool2 = mail($strToMob,$strSubject,$strComment,$Header1,"-f ".$NOREPLY_ADDR);//登録者に送信 | |
| 131 | 132 | if(!$intBool2){ |
| 132 | 133 | echo("メール送信に失敗しました。<tr>"); |
| 133 | 134 | echo "宛先:".$strToMob."<BR>"; | ... | ... |
| ... | ... | @@ -145,7 +145,7 @@ $Contents = $objData->contents; |
| 145 | 145 | $Send_type = $objData->send_type; |
| 146 | 146 | |
| 147 | 147 | $Header1 = ""; |
| 148 | -$Headers['From']=$strSubmitAdd; | |
| 148 | +$Headers['From']=$NOREPLY_ADDR; | |
| 149 | 149 | $Headers['X-Mailer']="PHP/".phpversion(); //メール送信プログラムの表示 |
| 150 | 150 | |
| 151 | 151 | //********** 未読者取得 **********// |
| ... | ... | @@ -209,7 +209,7 @@ $strComment = ""; |
| 209 | 209 | |
| 210 | 210 | if($Send_type==0 || $Send_type==1){ |
| 211 | 211 | if($strToMob!=""){ |
| 212 | - $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL,$Header1,"-f ".$strSubmitAdd);//携帯に送信 | |
| 212 | + $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3),$Header1,"-f ".$NOREPLY_ADDR);//携帯に送信 | |
| 213 | 213 | }else{ |
| 214 | 214 | $intBool2 = true; |
| 215 | 215 | } |
| ... | ... | @@ -231,7 +231,7 @@ $strComment = ""; |
| 231 | 231 | |
| 232 | 232 | if($Send_type==0 || $Send_type==2){ |
| 233 | 233 | if($strTo!=""){ |
| 234 | - $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC, $Header,"-f ".$strSubmitAdd);//PCに送信 | |
| 234 | + $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3), $Header,"-f ".$NOREPLY_ADDR);//PCに送信 | |
| 235 | 235 | }else{ |
| 236 | 236 | $intBool = true; |
| 237 | 237 | } | ... | ... |
| ... | ... | @@ -145,7 +145,7 @@ $Contents = $objData->contents; |
| 145 | 145 | $Send_type = $objData->send_type; |
| 146 | 146 | |
| 147 | 147 | $Header1 = ""; |
| 148 | -$Headers['From']=$strSubmitAdd; | |
| 148 | +$Headers['From']=$NOREPLY_ADDR; | |
| 149 | 149 | $Headers['X-Mailer']="PHP/".phpversion(); //メール送信プログラムの表示 |
| 150 | 150 | |
| 151 | 151 | //********** 選択者取得 **********// |
| ... | ... | @@ -213,7 +213,7 @@ $strComment = ""; |
| 213 | 213 | |
| 214 | 214 | if($Send_type==0 || $Send_type==1){ |
| 215 | 215 | if($strToMob!=""){ |
| 216 | - $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL,$Header1,"-f ".$strSubmitAdd);//携帯に送信 | |
| 216 | + $intbool2 = mail($strtomob,$strsubject,$strcomment.$comment_tel.$koukokutel.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3),$Header1,"-f ".$NOREPLY_ADDR); | |
| 217 | 217 | }else{ |
| 218 | 218 | $intBool2 = true; |
| 219 | 219 | } |
| ... | ... | @@ -235,7 +235,7 @@ $strComment = ""; |
| 235 | 235 | |
| 236 | 236 | if($Send_type==0 || $Send_type==2){ |
| 237 | 237 | if($strTo!=""){ |
| 238 | - $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC, $Header,"-f ".$strSubmitAdd);//PCに送信 | |
| 238 | + $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3), $Header,"-f ".$NOREPLY_ADDR); | |
| 239 | 239 | }else{ |
| 240 | 240 | $intBool = true; |
| 241 | 241 | } | ... | ... |
| ... | ... | @@ -144,7 +144,7 @@ $Contents = $objData->contents; |
| 144 | 144 | $Send_type = $objData->send_type; |
| 145 | 145 | |
| 146 | 146 | $Header1 = ""; |
| 147 | -$Headers['From']=$strSubmitAdd; | |
| 147 | +$Headers['From']=$NOREPLY_ADDR; | |
| 148 | 148 | $Headers['X-Mailer']="PHP/".phpversion(); //メール送信プログラムの表示 |
| 149 | 149 | |
| 150 | 150 | //********** 選択者取得 **********// |
| ... | ... | @@ -245,7 +245,7 @@ for ($intI = 0 ; $intI < count($User_List)-1 ; $intI++) { |
| 245 | 245 | |
| 246 | 246 | if($Send_type==0 || $Send_type==1){ |
| 247 | 247 | if($strToMob!=""){ |
| 248 | - $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL,$Header1,"-f ".$strSubmitAdd);//携帯に送信 | |
| 248 | + $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3),$Header1,"-f ".$NOREPLY_ADDR);//携帯に送信 | |
| 249 | 249 | }else{ |
| 250 | 250 | $intBool2 = true; |
| 251 | 251 | } |
| ... | ... | @@ -267,7 +267,7 @@ for ($intI = 0 ; $intI < count($User_List)-1 ; $intI++) { |
| 267 | 267 | |
| 268 | 268 | if($Send_type==0 || $Send_type==2){ |
| 269 | 269 | if($strTo!=""){ |
| 270 | - $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC, $Header,"-f ".$strSubmitAdd);//PCに送信 | |
| 270 | + $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3), $Header,"-f ".$NOREPLY_ADDR);//PCに送信 | |
| 271 | 271 | }else{ |
| 272 | 272 | $intBool = true; |
| 273 | 273 | } | ... | ... |
| ... | ... | @@ -145,7 +145,7 @@ $Contents = $objData->contents; |
| 145 | 145 | $Send_type = $objData->send_type; |
| 146 | 146 | |
| 147 | 147 | $Header1 = ""; |
| 148 | -$Headers['From']=$strSubmitAdd; | |
| 148 | +$Headers['From']=$NOREPLY_ADDR; | |
| 149 | 149 | $Headers['X-Mailer']="PHP/".phpversion(); //メール送信プログラムの表示 |
| 150 | 150 | |
| 151 | 151 | //********** 未読者取得 **********// |
| ... | ... | @@ -210,7 +210,7 @@ $strComment = ""; |
| 210 | 210 | |
| 211 | 211 | if($Send_type==0 || $Send_type==1){ |
| 212 | 212 | if($strToMob!=""){ |
| 213 | - $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL,$Header1,"-f ".$strSubmitAdd);//携帯に送信 | |
| 213 | + $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3),$Header1,"-f ".$NOREPLY_ADDR);//携帯に送信 | |
| 214 | 214 | }else{ |
| 215 | 215 | $intBool2 = true; |
| 216 | 216 | } |
| ... | ... | @@ -232,7 +232,7 @@ $strComment = ""; |
| 232 | 232 | |
| 233 | 233 | if($Send_type==0 || $Send_type==2){ |
| 234 | 234 | if($strTo!=""){ |
| 235 | - $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC, $Header,"-f ".$strSubmitAdd);//PCに送信 | |
| 235 | + $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3), $Header,"-f ".$NOREPLY_ADDR);//PCに送信 | |
| 236 | 236 | }else{ |
| 237 | 237 | $intBool = true; |
| 238 | 238 | } | ... | ... |
| ... | ... | @@ -145,7 +145,7 @@ $Contents = $objData->contents; |
| 145 | 145 | $Send_type = $objData->send_type; |
| 146 | 146 | |
| 147 | 147 | $Header1 = ""; |
| 148 | -$Headers['From']=$strSubmitAdd; | |
| 148 | +$Headers['From']=$NOREPLY_ADDR; | |
| 149 | 149 | $Headers['X-Mailer']="PHP/".phpversion(); //メール送信プログラムの表示 |
| 150 | 150 | |
| 151 | 151 | //********** 選択者取得 **********// |
| ... | ... | @@ -213,7 +213,7 @@ $strComment = ""; |
| 213 | 213 | |
| 214 | 214 | if($Send_type==0 || $Send_type==1){ |
| 215 | 215 | if($strToMob!=""){ |
| 216 | - $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL,$Header1,"-f ".$strSubmitAdd);//携帯に送信 | |
| 216 | + $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3),$Header1,"-f ".$NOREPLY_ADDR);//携帯に送信 | |
| 217 | 217 | }else{ |
| 218 | 218 | $intBool2 = true; |
| 219 | 219 | } |
| ... | ... | @@ -235,7 +235,7 @@ $strComment = ""; |
| 235 | 235 | |
| 236 | 236 | if($Send_type==0 || $Send_type==2){ |
| 237 | 237 | if($strTo!=""){ |
| 238 | - $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC, $Header,"-f ".$strSubmitAdd);//PCに送信 | |
| 238 | + $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3), $Header,"-f ".$NOREPLY_ADDR);//PCに送信 | |
| 239 | 239 | }else{ |
| 240 | 240 | $intBool = true; |
| 241 | 241 | } | ... | ... |
| ... | ... | @@ -145,7 +145,7 @@ $Contents = $objData->contents; |
| 145 | 145 | $Send_type = $objData->send_type; |
| 146 | 146 | |
| 147 | 147 | $Header1 = ""; |
| 148 | -$Headers['From']=$strSubmitAdd; | |
| 148 | +$Headers['From']=$NOREPLY_ADDR; | |
| 149 | 149 | $Headers['X-Mailer']="PHP/".phpversion(); //メール送信プログラムの表示 |
| 150 | 150 | |
| 151 | 151 | //********** 未読者取得 **********// |
| ... | ... | @@ -210,7 +210,7 @@ $strComment = ""; |
| 210 | 210 | |
| 211 | 211 | if($Send_type==0 || $Send_type==1){ |
| 212 | 212 | if($strToMob!=""){ |
| 213 | - $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL,$Header1,"-f ".$strSubmitAdd);//携帯に送信 | |
| 213 | + $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3),$Header1,"-f ".$NOREPLY_ADDR);//携帯に送信 | |
| 214 | 214 | }else{ |
| 215 | 215 | $intBool2 = true; |
| 216 | 216 | } |
| ... | ... | @@ -232,7 +232,7 @@ $strComment = ""; |
| 232 | 232 | |
| 233 | 233 | if($Send_type==0 || $Send_type==2){ |
| 234 | 234 | if($strTo!=""){ |
| 235 | - $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC, $Header,"-f ".$strSubmitAdd);//PCに送信 | |
| 235 | + $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3), $Header,"-f ".$NOREPLY_ADDR);//PCに送信 | |
| 236 | 236 | }else{ |
| 237 | 237 | $intBool = true; |
| 238 | 238 | } | ... | ... |
| ... | ... | @@ -145,7 +145,7 @@ $Contents = $objData->contents; |
| 145 | 145 | $Send_type = $objData->send_type; |
| 146 | 146 | |
| 147 | 147 | $Header1 = ""; |
| 148 | -$Headers['From']=$strSubmitAdd; | |
| 148 | +$Headers['From']=$NOREPLY_ADDR; | |
| 149 | 149 | $Headers['X-Mailer']="PHP/".phpversion(); //メール送信プログラムの表示 |
| 150 | 150 | |
| 151 | 151 | //********** 選択者取得 **********// |
| ... | ... | @@ -213,7 +213,7 @@ $strComment = ""; |
| 213 | 213 | |
| 214 | 214 | if($Send_type==0 || $Send_type==1){ |
| 215 | 215 | if($strToMob!=""){ |
| 216 | - $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL,$Header1,"-f ".$strSubmitAdd);//携帯に送信 | |
| 216 | + $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3),$Header1,"-f ".$NOREPLY_ADDR);//携帯に送信 | |
| 217 | 217 | }else{ |
| 218 | 218 | $intBool2 = true; |
| 219 | 219 | } |
| ... | ... | @@ -235,7 +235,7 @@ $strComment = ""; |
| 235 | 235 | |
| 236 | 236 | if($Send_type==0 || $Send_type==2){ |
| 237 | 237 | if($strTo!=""){ |
| 238 | - $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC, $Header,"-f ".$strSubmitAdd);//PCに送信 | |
| 238 | + $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3), $Header,"-f ".$NOREPLY_ADDR);//PCに送信 | |
| 239 | 239 | }else{ |
| 240 | 240 | $intBool = true; |
| 241 | 241 | } | ... | ... |
| ... | ... | @@ -197,7 +197,7 @@ if($objRecSet==false){ |
| 197 | 197 | } |
| 198 | 198 | |
| 199 | 199 | $Header1 = ""; |
| 200 | -$Headers['From']=$strSubmitAdd; | |
| 200 | +$Headers['From']=$NOREPLY_ADDR; | |
| 201 | 201 | $Headers['X-Mailer']="PHP/".phpversion(); //メール送信プログラムの表示 |
| 202 | 202 | $logFrom = array(); //log配列初期化 |
| 203 | 203 | $logTo = array(); |
| ... | ... | @@ -303,7 +303,7 @@ for($i=0;$i<count($User_List)-1;$i++){ |
| 303 | 303 | |
| 304 | 304 | if($_POST["SendType"]==0 || $_POST["SendType"]==1){ |
| 305 | 305 | if($strToMob!=""){ |
| 306 | - $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL,$Header1,"-f ".$strSubmitAdd);//携帯に送信 | |
| 306 | + $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3),$Header1,"-f ".$NOREPLY_ADDR);//携帯に送信 | |
| 307 | 307 | }else{ |
| 308 | 308 | $intBool2 = true; |
| 309 | 309 | } |
| ... | ... | @@ -325,7 +325,7 @@ for($i=0;$i<count($User_List)-1;$i++){ |
| 325 | 325 | |
| 326 | 326 | if($_POST["SendType"]==0 || $_POST["SendType"]==2){ |
| 327 | 327 | if($strTo!=""){ |
| 328 | - $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC, $Header,"-f ".$strSubmitAdd);//PCに送信 | |
| 328 | + $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3), $Header,"-f ".$NOREPLY_ADDR);//PCに送信 | |
| 329 | 329 | }else{ |
| 330 | 330 | $intBool = true; |
| 331 | 331 | } | ... | ... |
| ... | ... | @@ -197,7 +197,7 @@ if($objRecSet==false){ |
| 197 | 197 | } |
| 198 | 198 | |
| 199 | 199 | $Header1 = ""; |
| 200 | -$Headers['From']=$strSubmitAdd; | |
| 200 | +$Headers['From']=$NOREPLY_ADDR; | |
| 201 | 201 | $Headers['X-Mailer']="PHP/".phpversion(); //メール送信プログラムの表示 |
| 202 | 202 | $logFrom = array(); //log配列初期化 |
| 203 | 203 | $logTo = array(); |
| ... | ... | @@ -299,7 +299,7 @@ for($i=0;$i<count($User_List)-1;$i++){ |
| 299 | 299 | |
| 300 | 300 | if($_POST["SendType"]==0 || $_POST["SendType"]==1){ |
| 301 | 301 | if($strToMob!=""){ |
| 302 | - $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL,$Header1,"-f ".$strSubmitAdd);//携帯に送信 | |
| 302 | + $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3),$Header1,"-f ".$NOREPLY_ADDR);//携帯に送信 | |
| 303 | 303 | }else{ |
| 304 | 304 | $intBool2 = true; |
| 305 | 305 | } |
| ... | ... | @@ -321,7 +321,7 @@ for($i=0;$i<count($User_List)-1;$i++){ |
| 321 | 321 | |
| 322 | 322 | if($_POST["SendType"]==0 || $_POST["SendType"]==2){ |
| 323 | 323 | if($strTo!=""){ |
| 324 | - $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC, $Header,"-f ".$strSubmitAdd);//PCに送信 | |
| 324 | + $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3), $Header,"-f ".$NOREPLY_ADDR);//PCに送信 | |
| 325 | 325 | }else{ |
| 326 | 326 | $intBool = true; |
| 327 | 327 | } | ... | ... |
| ... | ... | @@ -14,6 +14,8 @@ include("./include/session_start.inc"); |
| 14 | 14 | include("./include/dbcon.inc"); |
| 15 | 15 | include("./include/jcode.phps"); |
| 16 | 16 | include("./include/mime.php"); |
| 17 | +include("./include/mtcnews.inc"); | |
| 18 | + | |
| 17 | 19 | //*************************** |
| 18 | 20 | //* 初期処理 |
| 19 | 21 | //*************************** |
| ... | ... | @@ -414,7 +416,7 @@ $strSQL = "SELECT * FROM syain_tbl WHERE syain_id = " . $strUser_id; |
| 414 | 416 | |
| 415 | 417 | $objRecSet = pg_exec($strSQL); |
| 416 | 418 | if($objRecSet==false){ |
| 417 | - echo("SQL実行に失敗しました(INSERT)"); | |
| 419 | + echo("SQL実行に失敗しました(INSERT)1"); | |
| 418 | 420 | exit; |
| 419 | 421 | } |
| 420 | 422 | |
| ... | ... | @@ -475,7 +477,8 @@ if ($intDataCount == 0){ |
| 475 | 477 | |
| 476 | 478 | $objRecSet = pg_exec($strSQL); |
| 477 | 479 | if($objRecSet==false){ |
| 478 | - echo("SQL実行に失敗しました(INSERT)"); | |
| 480 | + echo("SQL実行に失敗しました(INSERT)2"); | |
| 481 | + echo($strSQL); | |
| 479 | 482 | exit; |
| 480 | 483 | } |
| 481 | 484 | |
| ... | ... | @@ -490,7 +493,7 @@ if ($intDataCount == 0){ |
| 490 | 493 | |
| 491 | 494 | $objRecSet = pg_exec($strSQL); |
| 492 | 495 | if($objRecSet==false){ |
| 493 | - echo("SQL実行に失敗しました(INSERT)"); | |
| 496 | + echo("SQL実行に失敗しました(INSERT)3"); | |
| 494 | 497 | exit; |
| 495 | 498 | } |
| 496 | 499 | }else{ |
| ... | ... | @@ -506,7 +509,7 @@ if ($intDataCount == 0){ |
| 506 | 509 | |
| 507 | 510 | $objRecSet = pg_exec($strSQL); |
| 508 | 511 | if($objRecSet==false){ |
| 509 | - echo("SQL実行に失敗しました(INSERT)"); | |
| 512 | + echo("SQL実行に失敗しました(INSERT)4"); | |
| 510 | 513 | exit; |
| 511 | 514 | } |
| 512 | 515 | } |
| ... | ... | @@ -518,7 +521,7 @@ if ($intDataCount == 0){ |
| 518 | 521 | "(".$Max_cd . ","."'".$biko."','".$syamei."')"; |
| 519 | 522 | $objRecSet = pg_exec($strSQL); |
| 520 | 523 | if($objRecSet==false){ |
| 521 | - echo("SQL実行に失敗しました(INSERT)"); | |
| 524 | + echo("SQL実行に失敗しました(INSERT)5"); | |
| 522 | 525 | exit; |
| 523 | 526 | } |
| 524 | 527 | |
| ... | ... | @@ -544,7 +547,7 @@ if ($intDataCount == 0){ |
| 544 | 547 | $strComment = jcodeconvert($strComment, 1, 3); |
| 545 | 548 | |
| 546 | 549 | $Header1 = ""; |
| 547 | - $Headers['From']=$strSubmitAdd; | |
| 550 | + $Headers['From']=$NOREPLY_ADDR; | |
| 548 | 551 | $Headers['X-Mailer']="PHP/".phpversion(); //メール送信プログラムの表示 |
| 549 | 552 | //PEARのmimeクラス設定 |
| 550 | 553 | $mime = new Mail_mime("\r\n"); |
| ... | ... | @@ -559,12 +562,12 @@ if ($intDataCount == 0){ |
| 559 | 562 | $Header1 .= $key.": ".$val."\r\n"; |
| 560 | 563 | } |
| 561 | 564 | |
| 562 | - $intBool2 = mail($strToMob,$strSubject,$strComment,$Header1);//登録者に送信 | |
| 565 | + $intBool2 = mail($strToMob,$strSubject,$strComment,$Header1,"-f ".$NOREPLY_ADDR);//登録者に送信 | |
| 563 | 566 | if(!$intBool2){ |
| 564 | 567 | echo("メールエラー"); |
| 565 | 568 | exit; |
| 566 | 569 | } |
| 567 | - $intBool2 = mail($strMailaddress1,$strSubject,$strComment,$Header1);//登録者に送信 | |
| 570 | + $intBool2 = mail($strMailaddress1,$strSubject,$strComment,$Header1,"-f ".$NOREPLY_ADDR);//登録者に送信 | |
| 568 | 571 | if(!$intBool2){ |
| 569 | 572 | echo("メールエラー"); |
| 570 | 573 | exit; |
| ... | ... | @@ -718,7 +721,7 @@ if ($bumon_num==0){ |
| 718 | 721 | |
| 719 | 722 | $objRecSet = pg_exec($strSQL); |
| 720 | 723 | if($objRecSet==false){ |
| 721 | - echo("SQL実行に失敗しました(INSERT)"); | |
| 724 | + echo("SQL実行に失敗しました(INSERT)6"); | |
| 722 | 725 | exit; |
| 723 | 726 | } |
| 724 | 727 | }else{ |
| ... | ... | @@ -729,7 +732,7 @@ if ($bumon_num==0){ |
| 729 | 732 | "VALUES ('" . $strKey . "','" . $strBumonArray[$i] . "')"; |
| 730 | 733 | $objRecSet = pg_exec($strSQL); |
| 731 | 734 | if($objRecSet==false){ |
| 732 | - echo("SQL実行に失敗しました(INSERT)"); | |
| 735 | + echo("SQL実行に失敗しました(INSERT)7"); | |
| 733 | 736 | exit; |
| 734 | 737 | } |
| 735 | 738 | } |
| ... | ... | @@ -748,7 +751,7 @@ $strSQL="INSERT INTO syain_biko_tbl ( syain_cd,biko,syamei ) VALUES ". |
| 748 | 751 | "(".$strKey . ","."'".$biko."','".$syamei."')"; |
| 749 | 752 | $objRecSet = pg_exec($strSQL); |
| 750 | 753 | if($objRecSet==false){ |
| 751 | - echo("SQL実行に失敗しました(INSERT)"); | |
| 754 | + echo("SQL実行に失敗しました(INSERT)8"); | |
| 752 | 755 | exit; |
| 753 | 756 | } |
| 754 | 757 | ... | ... |
| ... | ... | @@ -14,6 +14,8 @@ include("./include/session_start.inc"); |
| 14 | 14 | include("./include/jcode.phps"); |
| 15 | 15 | include("./include/dbcon.inc"); |
| 16 | 16 | include("./include/mime.php"); |
| 17 | +include("./include/mtcnews.inc"); | |
| 18 | + | |
| 17 | 19 | //*************************** |
| 18 | 20 | //* 内部変数 |
| 19 | 21 | //*************************** | ... | ... |
| ... | ... | @@ -16,6 +16,7 @@ include("./include/session_start.inc"); |
| 16 | 16 | include("./include/jcode.phps"); |
| 17 | 17 | include("./include/mime.php"); |
| 18 | 18 | include("./include/getDomain.inc"); |
| 19 | +include("./include/mtcnews.inc"); | |
| 19 | 20 | |
| 20 | 21 | $kokyaku_name = $_SESSION["PHP_POST_DB_USER_NAME"]; |
| 21 | 22 | $kokyaku_ID = $_SESSION["PHP_POST_SYAIN_ID"]; |
| ... | ... | @@ -31,7 +32,7 @@ $strSubmitAdd = 'webmaster@media-tek.co.jp'; |
| 31 | 32 | $strKenmei = "【め〜るNiポン!】お問い合わせ(".$q_ctg.")"; |
| 32 | 33 | $Header = ""; //ヘッダー部クリア |
| 33 | 34 | |
| 34 | -$Headers['From'] = $strSubmitAdd; | |
| 35 | +$Headers['From'] = $NOREPLY_ADDR; | |
| 35 | 36 | $Headers['X-Mailer'] = "PHP/".phpversion(); //メール送信プログラムの表示 |
| 36 | 37 | |
| 37 | 38 | $strSubject = "=?iso-2022-jp?B?" . base64_encode(jcodeconvert(stripslashes($strKenmei), 0, 3)) . "?="; |
| ... | ... | @@ -58,7 +59,7 @@ $Headers = $mime->headers($Headers); |
| 58 | 59 | while (list($key,$val) = each($Headers)) { |
| 59 | 60 | $Header .= $key.": ".$val."\r\n"; |
| 60 | 61 | } |
| 61 | -mail($to, $strSubject, $strComment, $Header, "-f ".$strSubmitAdd);//送信 | |
| 62 | +mail($to, $strSubject, $strComment, $Header, "-f ".$NOREPLY_ADDR);//送信 | |
| 62 | 63 | |
| 63 | 64 | $o_smarty->display('SUB0101.tpl'); |
| 64 | 65 | ... | ... |
| ... | ... | @@ -17,12 +17,13 @@ include("./include/jcode.phps"); |
| 17 | 17 | include("./include/mime.php"); |
| 18 | 18 | include("./include/getDomain.inc"); |
| 19 | 19 | include("./include/dbcon2.inc"); |
| 20 | +include("./include/mtcnews.inc"); | |
| 20 | 21 | |
| 21 | 22 | //********** メイン処理 **********// |
| 22 | 23 | $strSQL = "SELECT * from form_data_tbl WHERE user_id = '" . $_SESSION["PHP_POST_SYAIN_ID"] . "'"; |
| 23 | 24 | $objRecSet = pg_exec($strSQL); |
| 24 | 25 | if($objRecSet==false){ |
| 25 | - echo("SQL実行に失敗しました(UPDATE)"); | |
| 26 | + echo("SQL実行に失敗しました(SELECT)"); | |
| 26 | 27 | exit; |
| 27 | 28 | } |
| 28 | 29 | |
| ... | ... | @@ -37,14 +38,14 @@ if (pg_numrows($objRecSet) != 0) { |
| 37 | 38 | |
| 38 | 39 | $Header="";//ヘッダー部クリア |
| 39 | 40 | |
| 40 | - $Headers['From']=$strSubmitAdd; | |
| 41 | + $Headers['From']=$NOREPLY_ADDR; | |
| 41 | 42 | $Headers['X-Mailer']="PHP/".phpversion(); //メール送信プログラムの表示 |
| 42 | 43 | |
| 43 | 44 | $strSubject = "=?iso-2022-jp?B?" . base64_encode(jcodeconvert(stripslashes($strKenmei), 0, 3)) . "?="; |
| 44 | 45 | |
| 45 | 46 | $strComment = jcodeconvert($user_name,1,3)." 様\n\n"; |
| 46 | - $strComment .= " め〜るNiポンの退会を受け付けました。\n"; | |
| 47 | - $strComment .= " これまでご利用頂きどうもありがとうございました。\n"; | |
| 47 | + $strComment .= " め〜るNiポンの退会を受付いたしました。\n"; | |
| 48 | + $strComment .= " これまでご利用いただきまして誠にありがとうございました。\n"; | |
| 48 | 49 | $strComment .= "\n"; |
| 49 | 50 | $strComment .= "\n"; |
| 50 | 51 | $strComment .= "またのご利用をお待ちしております。\n"; |
| ... | ... | @@ -74,11 +75,11 @@ if (pg_numrows($objRecSet) != 0) { |
| 74 | 75 | while (list($key,$val)=each($Headers)) { |
| 75 | 76 | $Header1 .= $key.": ".$val."\r\n"; |
| 76 | 77 | } |
| 77 | - $intBool2 = mail($e_mail,$strSubject,$strComment,$Header1,"-f ".$strSubmitAdd);//送信 | |
| 78 | + $intBool2 = mail($e_mail,$strSubject,$strComment,$Header1,"-f ".$NOREPLY_ADDR);//送信 | |
| 78 | 79 | $e_mail=$strSubmitAdd; |
| 79 | 80 | $strComment = jcodeconvert($user_name,1,3)." 様\n\n"; |
| 80 | - $strComment .= " め〜るNiポンの退会を受け付けました。\n"; | |
| 81 | - $strComment .= " これまでご利用頂きどうもありがとうございました。\n"; | |
| 81 | + $strComment .= " め〜るNiポンの退会を受付いたしました。\n"; | |
| 82 | + $strComment .= " これまでご利用いただきまして誠にありがとうございました。\n"; | |
| 82 | 83 | $strComment .= "\n"; |
| 83 | 84 | $strComment .= "■退会理由\n"; |
| 84 | 85 | $strComment .= $textarea."\n"; |
| ... | ... | @@ -95,7 +96,7 @@ if (pg_numrows($objRecSet) != 0) { |
| 95 | 96 | $strComment .= "\n"; |
| 96 | 97 | |
| 97 | 98 | $strComment = jcodeconvert($strComment, 1, 3); |
| 98 | - $intBool2 = mail($e_mail,$strSubject,$strComment,$Header1,"-f ".$strSubmitAdd);//送信 | |
| 99 | + $intBool2 = mail($e_mail,$strSubject,$strComment,$Header1,"-f ".$NOREPLY_ADDR);//送信 | |
| 99 | 100 | } |
| 100 | 101 | |
| 101 | 102 | //退会理由Insert | ... | ... |
| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | |
| 3 | 3 | include("../include/mime.php"); |
| 4 | 4 | include("../include/jcode.phps"); |
| 5 | +include("../include/mtcnews.inc"); | |
| 5 | 6 | // ポイントを加算減算する |
| 6 | 7 | // |
| 7 | 8 | |
| ... | ... | @@ -82,7 +83,7 @@ include("../include/jcode.phps"); |
| 82 | 83 | $strComment = jcodeconvert($strComment, 1, 3); |
| 83 | 84 | |
| 84 | 85 | $Header1 = ""; |
| 85 | - $Headers['From']=$strSubmitAdd; | |
| 86 | + $Headers['From']=$NOREPLY_ADDR; | |
| 86 | 87 | $Headers['X-Mailer']="PHP/".phpversion(); //メール送信プログラムの表示 |
| 87 | 88 | //PEARのmimeクラス設定 |
| 88 | 89 | $mime = new Mail_mime("\r\n"); |
| ... | ... | @@ -96,7 +97,7 @@ include("../include/jcode.phps"); |
| 96 | 97 | while (list($key,$val)=each($Headers)) { |
| 97 | 98 | $Header1 .= $key.": ".$val."\r\n"; |
| 98 | 99 | } |
| 99 | - $intBool2 = mail($strToMob,$strSubject,$strComment,$Header1,"-f ".$strSubmitAdd);//登録者に送信 | |
| 100 | + $intBool2 = mail($strToMob,$strSubject,$strComment,$Header1,"-f ".$NOREPLY_ADDR);//登録者に送信 | |
| 100 | 101 | if(!$intBool2){ |
| 101 | 102 | echo("メール送信に失敗しました。<tr>"); |
| 102 | 103 | echo "宛先:".$strToMob."<BR>"; |
| ... | ... | @@ -107,7 +108,7 @@ include("../include/jcode.phps"); |
| 107 | 108 | } |
| 108 | 109 | |
| 109 | 110 | $strToMob = "webmaster@media-tek.co.jp"; |
| 110 | - $intBool2 = mail($strToMob,$strSubject,$strComment,$Header1,"-f ".$strSubmitAdd);//管理者に送信 | |
| 111 | + $intBool2 = mail($strToMob,$strSubject,$strComment,$Header1,"-f ".$NOREPLY_ADDR);//管理者に送信 | |
| 111 | 112 | if(!$intBool2){ |
| 112 | 113 | echo("メール送信に失敗しました。<tr>"); |
| 113 | 114 | echo "宛先:".$strToMob."<BR>"; | ... | ... |
| ... | ... | @@ -16,6 +16,7 @@ include("../include/getDomain.inc"); |
| 16 | 16 | include("../include/jcode.phps"); |
| 17 | 17 | include("../include/mime.php"); |
| 18 | 18 | include("include/allinc.inc"); |
| 19 | +include("../include/mtcnews.inc"); | |
| 19 | 20 | |
| 20 | 21 | $sql = "SELECT * FROM mail_body_tbl "; |
| 21 | 22 | $sql .= "where seq=".$mail_body; | ... | ... |
| ... | ... | @@ -17,6 +17,7 @@ include("/var/www/html/production/mail_ni_pon_v2/include/getDomain.inc"); |
| 17 | 17 | include("/var/www/html/production/mail_ni_pon_v2/include/jcode.phps"); |
| 18 | 18 | include("/var/www/html/production/mail_ni_pon_v2/include/dbcon2.inc"); |
| 19 | 19 | include("/var/www/html/production/mail_ni_pon_v2/include/mime.php"); |
| 20 | +include("/var/www/html/production/mail_ni_pon_v2/include/mtcnews.inc"); | |
| 20 | 21 | |
| 21 | 22 | //メール文章 |
| 22 | 23 | include("/var/www/html/production/mail_ni_pon_v2/include/mtcnews.inc"); |
| ... | ... | @@ -192,7 +193,7 @@ for($intDb_Idx = 0; $intDb_Idx < $intDB_Count ; $intDb_Idx++) { |
| 192 | 193 | |
| 193 | 194 | //送信者アドレス取得 |
| 194 | 195 | $Header1 = ""; |
| 195 | - $Headers['From']=$strSubmitAdd; | |
| 196 | + $Headers['From']=$NOREPLY_ADDR; | |
| 196 | 197 | $Headers['X-Mailer']="PHP/".phpversion(); //メール送信プログラムの表示 |
| 197 | 198 | |
| 198 | 199 | $strSQL = "SELECT * FROM mail_info " . |
| ... | ... | @@ -263,7 +264,7 @@ for($intDb_Idx = 0; $intDb_Idx < $intDB_Count ; $intDb_Idx++) { |
| 263 | 264 | |
| 264 | 265 | if($strTo!=""){ |
| 265 | 266 | if($send_type[$i]==0 || $send_type[$i]==2){ |
| 266 | - $intBool = mail($strTo,$strSubject,$strComment.$Comment_pc.$koukokuPC[$intDb_Idx],$Header1,"-f ".$strSubmitAdd);//PCに送信 | |
| 267 | + $intBool = mail($strTo,$strSubject,$strComment.$Comment_pc.$koukokuPC[$intDb_Idx].jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3),$Header1,"-f ".$NOREPLY_ADDR);//PCに送信 | |
| 267 | 268 | }else{ |
| 268 | 269 | $intBool = true; |
| 269 | 270 | } |
| ... | ... | @@ -274,7 +275,7 @@ for($intDb_Idx = 0; $intDb_Idx < $intDB_Count ; $intDb_Idx++) { |
| 274 | 275 | } |
| 275 | 276 | if($strToMob!=""){ |
| 276 | 277 | if($send_type[$i]==0 || $send_type[$i]==1){ |
| 277 | - $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL[$intDb_Idx],$Header1,"-f ".$strSubmitAdd);//携帯に送信 | |
| 278 | + $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL[$intDb_Idx].jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3),$Header1,"-f ".$NOREPLY_ADDR);//携帯に送信 | |
| 278 | 279 | }else{ |
| 279 | 280 | $intBool2 = true; |
| 280 | 281 | } |
| ... | ... | @@ -383,7 +384,7 @@ for($intDb_Idx = 0; $intDb_Idx < $intDB_Count ; $intDb_Idx++) { |
| 383 | 384 | } |
| 384 | 385 | |
| 385 | 386 | //送信者アドレス取得 |
| 386 | - $Headers['From']=$strSubmitAdd; | |
| 387 | + $Headers['From']=$NOREPLY_ADDR; | |
| 387 | 388 | $Headers['X-Mailer']="PHP/".phpversion(); //メール送信プログラムの表示 |
| 388 | 389 | //$strMailSendName=""; |
| 389 | 390 | $strSQL = "SELECT * FROM mail_info " . |
| ... | ... | @@ -439,7 +440,7 @@ for($intDb_Idx = 0; $intDb_Idx < $intDB_Count ; $intDb_Idx++) { |
| 439 | 440 | |
| 440 | 441 | if($strTo!=""){ |
| 441 | 442 | if($send_type[$i]==0 || $send_type[$i]==2){ |
| 442 | - $intBool = mail($strTo,$strSubject,$strComment.$Comment_pc.$koukokuPC[$intDb_Idx],$Header1,"-f ".$strSubmitAdd);//PCに送信 | |
| 443 | + $intBool = mail($strTo,$strSubject,$strComment.$Comment_pc.$koukokuPC[$intDb_Idx].jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3),$Header1,"-f ".$NOREPLY_ADDR);//PCに送信 | |
| 443 | 444 | }else{ |
| 444 | 445 | $intBool = true; |
| 445 | 446 | } |
| ... | ... | @@ -451,7 +452,7 @@ for($intDb_Idx = 0; $intDb_Idx < $intDB_Count ; $intDb_Idx++) { |
| 451 | 452 | |
| 452 | 453 | if($strToMob!=""){ |
| 453 | 454 | if($send_type[$i]==0 || $send_type[$i]==1){ |
| 454 | - $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL[$intDb_Idx],$Header1,"-f ".$strSubmitAdd);//携帯に送信 | |
| 455 | + $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL[$intDb_Idx].jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3),$Header1,"-f ".$NOREPLY_ADDR);//携帯に送信 | |
| 455 | 456 | }else{ |
| 456 | 457 | $intBool2 = true; |
| 457 | 458 | } |
| ... | ... | @@ -558,7 +559,7 @@ for($intDb_Idx = 0; $intDb_Idx < $intDB_Count ; $intDb_Idx++) { |
| 558 | 559 | } |
| 559 | 560 | |
| 560 | 561 | //送信者アドレス取得 |
| 561 | - $Headers['From']=$strSubmitAdd; | |
| 562 | + $Headers['From']=$NOREPLY_ADDR; | |
| 562 | 563 | $Headers['X-Mailer']="PHP/".phpversion(); //メール送信プログラムの表示 |
| 563 | 564 | //$strMailSendName=""; |
| 564 | 565 | //$strMailSendName="from:" . $strSubmitAdd; |
| ... | ... | @@ -617,7 +618,7 @@ for($intDb_Idx = 0; $intDb_Idx < $intDB_Count ; $intDb_Idx++) { |
| 617 | 618 | |
| 618 | 619 | if($strTo!=""){ |
| 619 | 620 | if($send_type[$i]==0 || $send_type[$i]==2){ |
| 620 | - $intBool = mail($strTo,$strSubject,$strComment.$Comment_pc.$koukokuPC[$intDb_Idx],$Header1,"-f ".$strSubmitAdd);//PCに送信 | |
| 621 | + $intBool = mail($strTo,$strSubject,$strComment.$Comment_pc.$koukokuPC[$intDb_Idx].jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3),$Header1,"-f ".$NOREPLY_ADDR);//PCに送信 | |
| 621 | 622 | }else{ |
| 622 | 623 | $intBool = true; |
| 623 | 624 | } |
| ... | ... | @@ -629,7 +630,7 @@ for($intDb_Idx = 0; $intDb_Idx < $intDB_Count ; $intDb_Idx++) { |
| 629 | 630 | |
| 630 | 631 | if($strToMob!=""){ |
| 631 | 632 | if($send_type[$i]==0 || $send_type[$i]==1){ |
| 632 | - $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL[$intDb_Idx],$Header1,"-f ".$strSubmitAdd); //携帯に送信 | |
| 633 | + $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL[$intDb_Idx].jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3),$Header1,"-f ".$NOREPLY_ADDR); //携帯に送信 | |
| 633 | 634 | }else{ |
| 634 | 635 | $intBool2 = true; |
| 635 | 636 | } | ... | ... |
| ... | ... | @@ -16,6 +16,7 @@ include("./include/mime.php"); |
| 16 | 16 | include("./include/getWeekDay.inc"); |
| 17 | 17 | include("./include/getDomain.inc"); |
| 18 | 18 | include("./include/jcode.phps"); |
| 19 | +include("./include/mtcnews.inc"); | |
| 19 | 20 | |
| 20 | 21 | $strSQL=""; |
| 21 | 22 | $objRecSet="null"; |
| ... | ... | @@ -49,7 +50,7 @@ include("./include/jcode.phps"); |
| 49 | 50 | |
| 50 | 51 | $Header="";//ヘッダー部クリア |
| 51 | 52 | |
| 52 | - $Headers['From']=$strSubmitAdd; | |
| 53 | + $Headers['From']=$NOREPLY_ADDR; | |
| 53 | 54 | $Headers['X-Mailer']="PHP/".phpversion(); //メール送信プログラムの表示 |
| 54 | 55 | |
| 55 | 56 | $strSubject = "=?iso-2022-jp?B?" . base64_encode(jcodeconvert(stripslashes($strKenmei), 0, 3)) . "?="; |
| ... | ... | @@ -93,7 +94,7 @@ include("./include/jcode.phps"); |
| 93 | 94 | $Header1 .= $key.": ".$val."\r\n"; |
| 94 | 95 | } |
| 95 | 96 | |
| 96 | - $intBool2 = mail($e_mail,$strSubject,$strComment,$Header1,"-f ".$strSubmitAdd);//携帯に送信 | |
| 97 | + $intBool2 = mail($e_mail,$strSubject,$strComment,$Header1,"-f ".$NOREPLY_ADDR);//携帯に送信 | |
| 97 | 98 | ?> |
| 98 | 99 | <HTML> |
| 99 | 100 | <HEAD> | ... | ... |
| ... | ... | @@ -74,4 +74,14 @@ $Mail_PC = "/*------------------------------------------------------------------ |
| 74 | 74 | "このメールはメール配信システム「め〜るNiポン!」より配信されています"."\n". |
| 75 | 75 | "詳細はこちら ⇒ http://www.mail-ni-pon.net/"."\n\n".$arNews[$news_no]."\n". |
| 76 | 76 | "-------------------------------------------------------------------------------*/"; |
| 77 | + | |
| 78 | +$NOREPLY_ADDR = "noreply@mail-ni-pon.net"; | |
| 79 | + | |
| 80 | +function group_admin_addr($admin_addr){ | |
| 81 | + $str = "\n"."/*-----------------------------------------------------------------------------"."\n". | |
| 82 | + "このメールは「め〜るNiポン」より自動送信されています。"."\n". | |
| 83 | + "送信者に連絡の際は、「".$admin_addr."」へご連絡ください。"."\n". | |
| 84 | + "-------------------------------------------------------------------------------*/"; | |
| 85 | + return $str; | |
| 86 | + } | |
| 77 | 87 | ?> |
| \ No newline at end of file | ... | ... |
| ... | ... | @@ -660,7 +660,7 @@ if($tmp_flg==0){ |
| 660 | 660 | |
| 661 | 661 | //$Mail_Nasi=array(); |
| 662 | 662 | $Mail_Nasi=0; |
| 663 | - $Headers['From']=$strSubmitAdd; | |
| 663 | + $Headers['From']=$NOREPLY_ADDR; | |
| 664 | 664 | $Headers['X-Mailer']="PHP/".phpversion(); //メール送信プログラムの表示 |
| 665 | 665 | |
| 666 | 666 | //メールヘッダの配列を文字列に組み立てる |
| ... | ... | @@ -732,7 +732,7 @@ if($tmp_flg==0){ |
| 732 | 732 | } |
| 733 | 733 | if($NowSend!="on"){ |
| 734 | 734 | if($SendType==0 || $SendType==1){ |
| 735 | - $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL,$Header1,"-f ".$strSubmitAdd);//携帯に送信 | |
| 735 | + $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3),$Header1,"-f ".$NOREPLY_ADDR);//携帯に送信 | |
| 736 | 736 | $logFrom[$intCountLog] = $strSubmitAdd; |
| 737 | 737 | $logTo[$intCountLog] = $strToMob; |
| 738 | 738 | $logType[$intCountLog] = 1; |
| ... | ... | @@ -771,7 +771,7 @@ if($tmp_flg==0){ |
| 771 | 771 | } |
| 772 | 772 | if($NowSend!="on"){ |
| 773 | 773 | if($SendType==0 || $SendType==2){ |
| 774 | - $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC,$Header,"-f ".$strSubmitAdd);//PCに送信 | |
| 774 | + $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3),$Header,"-f ".$NOREPLY_ADDR);//PCに送信 | |
| 775 | 775 | $logFrom[$intCountLog] = $strSubmitAdd; |
| 776 | 776 | $logTo[$intCountLog] = $strToMob; |
| 777 | 777 | $logType[$intCountLog] = 0; | ... | ... |
| ... | ... | @@ -92,7 +92,6 @@ include("../include/mpoint.inc"); |
| 92 | 92 | include("../include/mlogget.inc"); |
| 93 | 93 | include("../../include/mtcnews.inc"); |
| 94 | 94 | |
| 95 | - | |
| 96 | 95 | //$Comment_tel = "このメールはメール配信システム「め〜るNiポン!」より配信されています"."\n". |
| 97 | 96 | // "詳細はこちらをご覧ください"."\n". |
| 98 | 97 | // "↓↓↓↓↓↓"."\n". |
| ... | ... | @@ -657,7 +656,7 @@ if($tmp_flg==0){ |
| 657 | 656 | //$Mail_Nasi=array(); |
| 658 | 657 | $Header1 = ""; |
| 659 | 658 | $Mail_Nasi=0; |
| 660 | - $Headers['From']=$strSubmitAdd; | |
| 659 | + $Headers['From']=$NOREPLY_ADDR; | |
| 661 | 660 | $Headers['X-Mailer']="PHP/".phpversion(); //メール送信プログラムの表示 |
| 662 | 661 | |
| 663 | 662 | $logFrom = array(); //log配列初期化 |
| ... | ... | @@ -738,7 +737,7 @@ if($tmp_flg==0){ |
| 738 | 737 | } |
| 739 | 738 | if($NowSend!="on"){ |
| 740 | 739 | if($SendType==0 || $SendType==1){ |
| 741 | - $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL,$Header1,"-f ".$strSubmitAdd);//携帯に送信 | |
| 740 | + $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3),$Header1,"-f ".$NOREPLY_ADDR);//携帯に送信 | |
| 742 | 741 | $logFrom[$intCountLog] = $strSubmitAdd; |
| 743 | 742 | $logTo[$intCountLog] = $strToMob; |
| 744 | 743 | $logType[$intCountLog] = 1; |
| ... | ... | @@ -777,7 +776,7 @@ if($tmp_flg==0){ |
| 777 | 776 | } |
| 778 | 777 | if($NowSend!="on"){ |
| 779 | 778 | if($SendType==0 || $SendType==2){ |
| 780 | - $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC,$Header,"-f ".$strSubmitAdd);//PCに送信 | |
| 779 | + $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3),$Header,"-f ".$NOREPLY_ADDR);//PCに送信 | |
| 781 | 780 | $logFrom[$intCountLog] = $strSubmitAdd; |
| 782 | 781 | $logTo[$intCountLog] = $strToMob; |
| 783 | 782 | $logType[$intCountLog] = 0; | ... | ... |
| ... | ... | @@ -79,7 +79,6 @@ include("../include/mpoint.inc"); |
| 79 | 79 | include("../include/mlogget.inc"); |
| 80 | 80 | include("../../include/mtcnews.inc"); |
| 81 | 81 | |
| 82 | - | |
| 83 | 82 | //$Comment_tel = "このメールはメール配信システム「め〜るNiポン!」より配信されています"."\n". |
| 84 | 83 | // "詳細はこちらをご覧ください"."\n". |
| 85 | 84 | // "↓↓↓↓↓↓"."\n". |
| ... | ... | @@ -638,7 +637,7 @@ if($tmp_flg==0){ |
| 638 | 637 | |
| 639 | 638 | //$Mail_Nasi=array(); |
| 640 | 639 | $Mail_Nasi=0; |
| 641 | - $Headers['From']=$strSubmitAdd; | |
| 640 | + $Headers['From']=$NOREPLY_ADDR; | |
| 642 | 641 | $Headers['X-Mailer']="PHP/".phpversion(); //メール送信プログラムの表示 |
| 643 | 642 | |
| 644 | 643 | //メールヘッダの配列を文字列に組み立てる |
| ... | ... | @@ -710,7 +709,7 @@ if($tmp_flg==0){ |
| 710 | 709 | } |
| 711 | 710 | if($NowSend!="on"){ |
| 712 | 711 | if($SendType==0 || $SendType==1){ |
| 713 | - $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL,$Header1,"-f ".$strSubmitAdd);//携帯に送信 | |
| 712 | + $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3),$Header1,"-f ".$NOREPLY_ADDR);//携帯に送信 | |
| 714 | 713 | $logFrom[$intCountLog] = $strSubmitAdd; |
| 715 | 714 | $logTo[$intCountLog] = $strToMob; |
| 716 | 715 | $logType[$intCountLog] = 1; |
| ... | ... | @@ -749,7 +748,7 @@ if($tmp_flg==0){ |
| 749 | 748 | } |
| 750 | 749 | if($NowSend!="on"){ |
| 751 | 750 | if($SendType==0 || $SendType==2){ |
| 752 | - $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC,$Header,"-f ".$strSubmitAdd);//PCに送信 | |
| 751 | + $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3),$Header,"-f ".$NOREPLY_ADDR);//PCに送信 | |
| 753 | 752 | $logFrom[$intCountLog] = $strSubmitAdd; |
| 754 | 753 | $logTo[$intCountLog] = $strToMob; |
| 755 | 754 | $logType[$intCountLog] = 0; | ... | ... |
| ... | ... | @@ -92,7 +92,6 @@ include("../include/mpoint.inc"); |
| 92 | 92 | include("../include/mlogget.inc"); |
| 93 | 93 | include("../../include/mtcnews.inc"); |
| 94 | 94 | |
| 95 | - | |
| 96 | 95 | //$Comment_tel = "このメールはメール配信システム「め〜るNiポン!」より配信されています"."\n". |
| 97 | 96 | // "詳細はこちらをご覧ください"."\n". |
| 98 | 97 | // "↓↓↓↓↓↓"."\n". |
| ... | ... | @@ -630,7 +629,7 @@ if($tmp_flg==0){ |
| 630 | 629 | //$Mail_Nasi=array(); |
| 631 | 630 | $Header1 = ""; |
| 632 | 631 | $Mail_Nasi=0; |
| 633 | - $Headers['From']=$strSubmitAdd; | |
| 632 | + $Headers['From']=$NOREPLY_ADDR; | |
| 634 | 633 | $Headers['X-Mailer']="PHP/".phpversion(); //メール送信プログラムの表示 |
| 635 | 634 | |
| 636 | 635 | $logFrom = array(); //log配列初期化 |
| ... | ... | @@ -711,7 +710,7 @@ if($tmp_flg==0){ |
| 711 | 710 | } |
| 712 | 711 | if($NowSend!="on"){ |
| 713 | 712 | if($SendType==0 || $SendType==1){ |
| 714 | - $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL,$Header1,"-f ".$strSubmitAdd);//携帯に送信 | |
| 713 | + $intBool2 = mail($strToMob,$strSubject,$strComment.$Comment_tel.$koukokuTEL.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3),$Header1,"-f ".$NOREPLY_ADDR);//携帯に送信 | |
| 715 | 714 | $logFrom[$intCountLog] = $strSubmitAdd; |
| 716 | 715 | $logTo[$intCountLog] = $strToMob; |
| 717 | 716 | $logType[$intCountLog] = 1; |
| ... | ... | @@ -750,7 +749,7 @@ if($tmp_flg==0){ |
| 750 | 749 | } |
| 751 | 750 | if($NowSend!="on"){ |
| 752 | 751 | if($SendType==0 || $SendType==2){ |
| 753 | - $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC,$Header,"-f ".$strSubmitAdd);//PCに送信 | |
| 752 | + $intBool = mail($strTo, $strSubject, $strComment.$Comment_pc.$koukokuPC.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3),$Header,"-f ".$NOREPLY_ADDR);//PCに送信 | |
| 754 | 753 | $logFrom[$intCountLog] = $strSubmitAdd; |
| 755 | 754 | $logTo[$intCountLog] = $strToMob; |
| 756 | 755 | $logType[$intCountLog] = 0; | ... | ... |
| ... | ... | @@ -15,6 +15,7 @@ include("./include/session_start.inc"); |
| 15 | 15 | include("./include/SessionChk2.inc"); |
| 16 | 16 | include("./include/jcode.phps"); |
| 17 | 17 | include("./include/mime.php"); |
| 18 | +include("../include/mtcnews.inc"); | |
| 18 | 19 | |
| 19 | 20 | //********** 接続処理 **********// |
| 20 | 21 | include("./include/dbcon2.inc"); |
| ... | ... | @@ -95,7 +96,7 @@ $strComment .= "\n"; |
| 95 | 96 | $strComment = jcodeconvert($strComment, 1, 3); |
| 96 | 97 | |
| 97 | 98 | $Header1 = ""; |
| 98 | -$Headers['From']=$strSubmitAdd; | |
| 99 | +$Headers['From']=$NOREPLY_ADDR; | |
| 99 | 100 | $Headers['X-Mailer']="PHP/".phpversion(); //メール送信プログラムの表示 |
| 100 | 101 | //PEARのmimeクラス設定 |
| 101 | 102 | $mime = new Mail_mime("\r\n"); |
| ... | ... | @@ -109,7 +110,7 @@ $Headers = $mime->headers($Headers); |
| 109 | 110 | while (list($key,$val)=each($Headers)) { |
| 110 | 111 | $Header1 .= $key.": ".$val."\r\n"; |
| 111 | 112 | } |
| 112 | -$intBool2 = mail($strToMob,$strSubject,$strComment,$Header1,"-f ".$strSubmitAdd);//登録者に送信 | |
| 113 | +$intBool2 = mail($strToMob,$strSubject,$strComment.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3),$Header1,"-f ".$NOREPLY_ADDR);//登録者に送信 | |
| 113 | 114 | if(!$intBool2){ |
| 114 | 115 | echo("メール送信に失敗しました。<tr>"); |
| 115 | 116 | echo "宛先:".$strToMob."<BR>"; |
| ... | ... | @@ -126,7 +127,7 @@ $Subject_name = "め〜るNiポン ポイント申し込みがありました"; |
| 126 | 127 | $strSubject = "=?iso-2022-jp?B?" . base64_encode(jcodeconvert($Subject_name, 0, 3)) . "?="; |
| 127 | 128 | $str = "団体名:".$PHP_POST_DB_USER_NAME."\n\n"; |
| 128 | 129 | $strComment = jcodeconvert($str, 1, 3).$strComment; |
| 129 | -$intBool2 = mail($strToMob,$strSubject,$strComment,$Header1,"-f ".$strSubmitAdd);//登録者に送信 | |
| 130 | +$intBool2 = mail($strToMob,$strSubject,$strComment.jcodeconvert(group_admin_addr($strSubmitAdd), 1, 3),$Header1,"-f ".$NOREPLY_ADDR);//登録者に送信 | |
| 130 | 131 | if(!$intBool2){ |
| 131 | 132 | echo("メール送信に失敗しました。<tr>"); |
| 132 | 133 | echo "宛先:".$strToMob."<BR>"; | ... | ... |
Please
register
or
login
to post a comment