我想制作电子邮件功能支持阿拉伯语
<?php if($nameFlag && $emailFlag && $messageFlag && $phoneFlag ) { if(!empty($name) && !empty($email) && !empty($message) && !empty($phone)) { $recipient="yourMail"; $subject="Contact Form Messages"; $email=$_POST["email"]; $phone=$_POST["phone"]; $message=$_POST["message"]; $mailBody="Name: $name\nEmail: $email\nPhone: $phone \n\nMessage:$message"; mail($recipient, $subject, $mailBody, "From: $sender <$email>"); echo '<script type="text/javascript"> alert("thanks for contacting , we will contacting you soon!") ; window.location.href = "YourSite"; </script>' ; } } ?>
我尝试了很多代码,但它们没有用到
我编码了很多次,但我想知道为什么现在出现这个问题