config.php <?php // Contact Form By TalGarty $headers .= 'Content-Type: text/html; charset=utf-8' . "\r\n"; $config = Array( "email" => "[email protected]", ); $lang = Array( "newemailarriveed" => "התקבלה הודעה חדשה", "newemailfrom" => "הודעה חדשה מ", "info" => "פרטי ההודעה", "fullname" => "שם מלא", "iemail" => "Email", "success" => "Mail Send successfuly", "eror1" => "Eror: The Email did not send.", "eror2" => "Eror: One or more fields was empty.", ); ?>
|
form.php
<?phpinclude ("config.php"); // Contact Form By TalGarty $mail_check=true; if(trim($_POST)=="") $mail_check=false; if(trim($_POST)=="") $mail_check=false; if(trim($_POST)=="") $mail_check=false; if(trim($_POST)=="") $mail_check=false; if($mail_check){ $to=$config; $subject = '=?UTF-8?B?'.base64_encode($subject).'?='; $message = ' <html> <head> <meta charset="utf-8"> <title>$lang</title> </head> <body> <p>התקבלה הודעה חדשה באתר אושרי צילום</p> <table> <tr> <th>שם מלא</th><th> '.$_POST.'</th> </tr> <tr> <td>טלפון</td><td>'.$_POST.'</td> </tr> <tr> <td>אימייל</td><td>'.$_POST.'</td> </tr> <tr> <td>ההודעה</td><td>'.$_POST.'</td> </tr> </table> </body> </html> '; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-Type: text/html; charset=utf-8' . "\r\n"; $headers .= 'From: '.$_POST.' <'.$_POST.'>' . "\r\n"; if(mail($to, $subject, $message, $headers)){ echo $lang; } else{ echo $lang; } }else{ echo $lang; } ?>
|
בשניהם הקידוד הוא utf-8
מה אפשר עוד לעשות איפה הבעיה?