问一个简单的表单问题 <form name="form1" method="post" action="mailto:你的邮箱地址"> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <form action="mailto:[email protected]" method="post"> <table width="406" height="189" border="0"> <tr> <td>name</td> <td><input type="text" name="guestname"></td> </tr> <tr> <td>mailaddress</td> <td><input type="text" name="mailaddress"></td> </tr> <tr> <td height="101">suggestion</td> <td><textarea name="suggestion" wrap="PHYSICAL" rows="10" cols="50"></textarea></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td colspan="2"><input type="submit" name="Submit" value="submit"> <input type="reset" name="Submit2" value="reset"> </td> </tr> </table></form>简单的做出来了,信也收到了。但是如何能在信里显示出发件人姓名,发件人地址,像正常OUTLOOK,姓名,邮件地址,主题来? 我想得的结果如下:姓名:_____email:_______主题:______建议:_______(多行)提交按钮点击提交后,发送邮件。收件人收到邮件后,会有发信人地址,主题和建议。发邮件时不调用客户机里的邮件软件。跟留言板一样。请问这样的功能是需要PHP,还是用js就可以完成。有PHP码, 请让我看看 PHP的mail函数要服务器设置才可以,就mailto吧,简单 bool mail ( string to, string subject, string message [, string additional_headers [, string additional_parameters]])/* recipients */$to = "Mary <[email protected]>" . ", " ; //note the comma$to .= "Kelly <[email protected]>";/* subject */$subject = "Birthday Reminders for August";/* message */$message = '<html><head> <title>Birthday Reminders for August</title></head><body><p>Here are the birthdays upcoming in August!</p><table> <tr> <th>Person</th><th>Day</th><th>Month</th><th>Year</th> </tr> <tr> <td>Joe</td><td>3rd</td><td>August</td><td>1970</td> </tr> <tr> <td>Sally</td><td>17th</td><td>August</td><td>1973</td> </tr></table></body></html>';/* To send HTML mail, you can set the Content-type header. */$headers = "MIME-Version: 1.0\r\n";$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";/* additional headers */$headers .= "From: Birthday Reminder <[email protected]>\r\n";$headers .= "Cc: [email protected]\r\n";$headers .= "Bcc: [email protected]\r\n";/* and now mail it */mail($to, $subject, $message, $headers); 一个简单的问题,望各位大哥帮助一下 PHP二维数组排序的问题,请看数组,php该如何对其排序 基本的存图片和取图片过程 一段代码求解 帮帮忙吧!!急急急.php实现文本框只能输入数字和/的实现方法???? 谁能提供一些精美的网站界面 邮件问题 如何实现留言后自动发信回复? php mysqli 中DELETE FROM 不支持删除中文数据 求助呀。关于MYSQL多表查询,重复字段的问题 怎样做论坛和BBS? 一个PHP的简单问题,别的网页采用http://.../a.php?xxx的方法调用我写的php,如何得到这个xxx?
<table width="406" height="189" border="0">
<tr>
<td>name</td>
<td><input type="text" name="guestname"></td>
</tr>
<tr>
<td>mailaddress</td>
<td><input type="text" name="mailaddress"></td>
</tr>
<tr>
<td height="101">suggestion</td>
<td><textarea name="suggestion" wrap="PHYSICAL" rows="10" cols="50"></textarea></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="Submit" value="submit">
<input type="reset" name="Submit2" value="reset"> </td>
</tr>
</table>
</form>简单的做出来了,信也收到了。但是如何能在信里显示出发件人姓名,发件人地址,像正常OUTLOOK,姓名,邮件地址,主题来?
email:_______
主题:______
建议:_______(多行)提交按钮点击提交后,发送邮件。收件人收到邮件后,会有发信人地址,主题和建议。发邮件时不调用客户机里的邮件软件。跟留言板一样。请问这样的功能是需要PHP,还是用js就可以完成。有PHP码, 请让我看看
$to = "Mary <[email protected]>" . ", " ; //note the comma
$to .= "Kelly <[email protected]>";/* subject */
$subject = "Birthday Reminders for August";/* message */
$message = '
<html>
<head>
<title>Birthday Reminders for August</title>
</head>
<body>
<p>Here are the birthdays upcoming in August!</p>
<table>
<tr>
<th>Person</th><th>Day</th><th>Month</th><th>Year</th>
</tr>
<tr>
<td>Joe</td><td>3rd</td><td>August</td><td>1970</td>
</tr>
<tr>
<td>Sally</td><td>17th</td><td>August</td><td>1973</td>
</tr>
</table>
</body>
</html>
';/* To send HTML mail, you can set the Content-type header. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";/* additional headers */
$headers .= "From: Birthday Reminder <[email protected]>\r\n";$headers .= "Cc: [email protected]\r\n";
$headers .= "Bcc: [email protected]\r\n";/* and now mail it */
mail($to, $subject, $message, $headers);