我有一個小表格,但我不知道如何將它發送到使用PHP的電子郵件。似乎有不同的技巧。如果有人可以編寫我的小表格,那麼我可以分析它並從中取出。先謝謝你!!!如何發送聯繫表格信息到電子郵件
HTML表單:
<form method="post" action="">
<p>
<input type="hidden" name="recipient" value="[email protected]" />
<input type="hidden" name="subject" value="test feedback" />
<input type="hidden" name="redirect" value="main.html" />
</p>
<p style="font-family:Arial, Helvetica, sans-serif; color:#FFF; font-size:12px;
font-weight:bold"><label>First Name:
<input type="text" name="First Name" size="30" maxlength="30"
style="margin-left:27px" />
</label></p>
<p style="font-family:Arial, Helvetica, sans-serif; color:#FFF; font-size:12px;
font-weight:bold"><label>Last Name:
<input type="text" name="Last Name" size="30" maxlength="30"
style="margin-left:27px" />
</label></p>
<p style="font-family:Arial, Helvetica, sans-serif; color:#FFF; font-size:12px;
font-weight:bold"><label>Phone Number:
<input type="text" name="Phone Number" size="30" maxlength="10"
style="margin-left:5px" />
</label></p>
<p style="font-family:Arial, Helvetica, sans-serif; color:#FFF; font-size:12px;
font-weight:bold"><label>Email:
<input type="text" name="Email" size="30" maxlength="30"
style="margin-left:59px" />
</label></p>
<p style="margin-top:19px; margin-left:244px;">
<input type="submit" value="submit" />
</p>
</form>
您是否在尋找php的['mail()'](http://php.net/manual/en/function.mail.php)? – Aiias 2013-05-04 18:31:48
'mail('to','subject','message',header);' – samayo 2013-05-04 18:33:29