我有一个 PHP 脚本,它根据用户输入的表单数据向用户发送电子邮件,但是当我在字符串中包含一个变量时,所有电子邮件都显示为“0”
<?php
$u_name = $_POST['u_name'];
$email = $_POST['email'];
$password = $_POST['password'];
$to = $_POST['email'];
$subject = "Site Activation";
$message = "Hello " + $u_name + ",";
$from = "admin@mytest4389.freeiz.com";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>