/ Published in: PHP
Expand |
Embed | Plain Text
// Set Headers $headers = 'MIME-Version: 1.0' . " "; $headers .= 'Content-type: text/html; charset=iso-8859-1' . " "; $headers .= 'FROM: "' . $from_address .'" <' . $from_address .'>' . " "; // Recipients Email Address //$to = "[email protected]"; //testing // Email Contents $subject = "New Enquiry from ".$_POST["name"]; $body = "<div style='font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#333333;'> <table width='680px' border='0' cellspacing='5' cellpadding='5' align='center' style='font-size:12px;'> <tr> <td align='left' colspan='2'> <img src='".$siteroot."/images/chat_logo.png' alt='logo' /> </td> </tr> <tr> <td width='150px'>Fullname</td> <td>". $_POST["name"] . "</td> </tr> <tr> <td width='150px'>Email</td> <td>". $_POST["email"] . "</td> </tr> <tr> <td width='150px'>Organisation</td> <td>". $_POST["organisation"] . "</td> </tr> <tr> <td width='150px'>Job Title</td> <td>". $_POST["job_title"] . "</td> </tr> <tr> <td width='150px'>Address</td> <td>". $_POST["address1"] . "<br /> ".$_POST["address2"]."<br />".$_POST["town"]." ".$_POST["postcode"]."</td> </tr> <tr> <td width='150px'>Phone Number</td> <td>". $_POST["telephone"] . "</td> </tr> <tr> <td width='150px'>Referred</td> <td>". $_POST["referral"] . "</td> </tr> <tr> <td width='150px'>Enquiry</td> </tr> </table> </div>";
You need to login to post a comment.
