0
我試圖創建一個HTML表單,這將最終使用folling PHP代碼發送電子郵件:PHP電子郵件形式 - 定義發件人
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$subject = $_POST['subject'];
$message = $_POST['message'];
$destinationemail = "[email protected]";
$emailcontent = "Name: {$name}\n\nE-Mail: {$email}\n\nMessage: {$subject}\n{$message}";
$subject = "Contact from Domain.com";
$from = $email;
mail($destinationemail, $subject, $emailcontent) or die("Error!");
echo "Thank you $name!";
?>
的問題是,每次我收到一封電子郵件,我就好像是從一個我認爲是Webhost的普通電子郵件中發出的郵件。
[email protected]
<[email protected]>
dom 08/10/2017, 18:40
Você;
我想它要接收這樣的事:
[email protected]
<[email protected]>
dom 08/10/2017, 18:40
Você;
這可能嗎?
謝謝 維克托•