用PHP实现用From发送电子邮件

作者:袖梨 2022-07-02

说明:用PHP实现发送电子邮件是比较简单的!大家可以看看如下完整代码。

1.把下面这段代码复制到你的网页中,可以复制到.HTML文件中。




Name:



E-Mail Address:



Website URL:





2. 建立mail.php文件,并且和上面的保存在同一个目录中。

$contactemail = "[email protected]";
$subject = "You choose";
$message .= "Name: $namen";
$message .= "E-mail: $emailn";
$message .= "Website URL: $urln";
mail($contactemail, $subject, $message);
echo "Thanks for mailing me, I should reply with in a few
days."
?>

相关文章

精彩推荐

一聚教程网

Copyright © 2010-2022

111cn.net All Rights Reserved