使用 PHP 发送邮件(将电子邮件放入电子邮件输入的那个)


Sending mail using PHP (to the one that puts the email in the EMAIL INPUT)

我想知道如何,(例如我的朋友)使用我创建的Php mail()函数向自己发送电子邮件。我给他网站,他把电子邮件和一条消息(在我创建的表格中),然后他按下提交按钮,但我是收到电子邮件的人而不是他。我是编程的新手。

使用这个

$email = "youremailaddress";
$yoursubject="Something ...";
$yourmessage="Something else...";    
mail($email, $yoursubject, $yourmessage);