| | |||||
| ||||||||
| CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| New Member Join Date: Mar 2004
Posts: 18
![]() | Easy mail form script First the form : mailform.htm Code: <html>
<head>
<title>Send Mail</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="mail.php">
<div align="center">
<table cellspacing="1" cellpadding="3" border="6" bordercolor="#F9F9F9" bgcolor="#CCCCCC">
<tr bgcolor="#F9F9F9">
<td>
<div align="center"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif" size="1">Your
Email </font></div>
</td>
<td>
<div align="center"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif" size="1">Message</font></div>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF">
<div align="center"><font color="#000000"><b>
<input type="text" name="from" size="20" value="">
</b></font></div>
</td>
<td bgcolor="#FFFFFF" rowspan="3"><font color="#000000"><b>
<textarea name="message" cols="20" rows="5"></textarea>
</b></font></td>
</tr>
<tr>
<td bgcolor="#F9F9F9">
<div align="center"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif" size="1">Subject</font></div>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF">
<div align="center"><font color="#000000"><b>
<input type="text" name="subject" size="20" value="">
</b></font></div>
</td>
</tr>
</table>
<table cellspacing="1" cellpadding="3" border="6" bordercolor="#F9F9F9" bgcolor="#CCCCCC">
<tr bgcolor="#F9F9F9">
<td>
<div align="center"><font color="#000000">
<input type="submit" name="Send" value="Send">
</font></div>
</td>
</tr>
</table>
<input type="hidden" name="to" value="YOU@YOURDOMAIN.COM">
</div>
</form>
</body>
</html> ????: NamePros.com http://www.namepros.com/code/22403-easy-mail-form-script.html then, mail.php PHP Code:
__________________ Mirndtsoft PHP Scripts | Featuring Automation for Paypal - Digital Goods, Ebay, Memberships, & Web Hostingwww.mirndtsoft.com |
| |
| | THREAD STARTER #3 (permalink) |
| New Member Join Date: Mar 2004
Posts: 18
![]() | From my site, www.mirndtsoft.fw-e.com . why?
__________________ Mirndtsoft PHP Scripts | Featuring Automation for Paypal - Digital Goods, Ebay, Memberships, & Web Hostingwww.mirndtsoft.com |
| |
| | #5 (permalink) |
| NamePros Member Join Date: Nov 2003
Posts: 44
![]() | Just so others know It can be sent with HTML. so to add html to the email you just simply add.... $body = " <html><body> <table width=60% border=1 cellpadding=0 cellspacing=0> <tr> <td> $message </td> </tr> </table> </html></body>";
__________________ Click Link for Java IRC PHP-Live IRC: pgardner.net:6667, Channel: #php. |
| |