每当我使用$ to变量时,都不会发送该消息,而当我直接对电子邮件使用“”时,它就会被发送。下面是我的代码...
const Callprice = parseInt(S.value) + parseInt(SP.value);
alert(Callprice);
var input = document.getElementById("callpriceinput");
input.value = Callprice;
但是当我使用下面的内容时,它会被发送。
$snd = "mail@mail.com";
$to = $snd; // this is your Email address
$from = $frome; // this is the sender's Email address
$titl = $title;
$subject = "Quotes From Eagle";
$message = $titl . " " . $quote;
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
我在哪里弄错了? 谢谢