-1
我正在建立一个网站,我希望用户通过表格给我发电子邮件。
这是我到目前为止(除了从其他HTML和CSS的):Webform电子邮件与HTML php
<form name="mailform" method="post" action="/assets/php/send_mail.php">
<input type="text" name="name" class="formtext" placeholder="Your name"/>
<input type="email" name="email" class="formtext" placeholder="Your email adress"/>
<input type="text" name="subject" class="formtext" placeholder="Subject"/>
<textarea name="content" placeholder="Message"></textarea>
<input type="button" name="send" id="send" value="Send Email" />
</form>
我知道我必须使用PHP,但我是新来的吧。
而且,是的,我想要的主题是:这是一个主题 - 约翰史密斯
我的PHP文件应该怎么看?
在此先感谢您的帮助!
阅读手册http://php.net/manual/en/function.mail.php和谷歌的感觉今天非常有帮助;) – 2014-11-23 16:22:40