如何使用PHP利用SMTP发Email

本片将介绍如何使用PHP利用SMTP来发Email。 写在之前: 如果想使用PHP来发Email, 首先要确定你的Hosting需要有SMTP或者Mail的服务(当今99%的Hosting Company都有此类服务)。 之后需要做的就很简单,你只需要把以下的code复制粘贴到你的PHP页面,你就可以发送email了,但要注意SPAM哦。 你一共需要建立两个页面,一个form.php,另一个script.php form.php: <html><head></head> <body><form action=”script.php” method=”POST”><P>Email Address:<input type = “text” name=”email” size=”30″></p><p>Subject:<input type = “text” name=”subject” size=”30″></p><p>Message:</p><p><textarea rows=”10″ cols=”20″…