<font color="#ff0000"> <br><br></font>说明:用PHP实现发送电子邮件是比较简单的!大家可以看看如下完整代码。<br><br>1.把下面这段代码复制到你的网页中,可以复制到.HTML文件中。<br><br><form action="mail.php" method="post"> <br><p align="center"> <br><font face="Verdana"> <br>Name:<br> <br><input type="text" name="name" style="border: 1px solid #000000"><br> <br>E-Mail Address:<br> <br><input type="text" name="email" style="border: 1px solid #000000"><br> <br>Website URL:<br> <br><input type="text" name="url" style="border: 1px solid #000000"><br> <br><input type="submit" value="Submit" style="border: 1px solid #000000"><br><br>2. 建立mail.php文件,并且和上面的保存在同一个目录中。<br><br> <br>$contactemail = "you@yourdomain.com"; <br>$subject = "You choose"; <br>$message .= "Name: $name\n"; <br>$message .= "E-mail: $email\n";<br>$message .= "Website URL: $url\n"; <br>mail($contactemail, $subject, $message); <br>echo "Thanks for mailing me, I should reply with in a few<br>days." <br>?> </font></p> </form>