All pastes #82341 Raw Edit

Miscellany

public text v1 · immutable
·published 2006-07-08 10:41 UTC
rendered paste body
$to = $online_ordering_add;
$subject = 'Date: '.$current_date.' Open Confirmation and Online Ordering Confirmation';
$header = 'Date: '.$current_date.' Open Confirmation and Online Ordering Confirmation';

    // Headers
    $headers  = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
   
    $message = '
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>FoodPlanet.co.uk, The future for Restaurants and Takeaways </title> <style type="text/css">
<!--
body {
    background-color: #014C74;
}
-->
</style>
<link href="http://www.foodplanet.co.uk/new_look/email/stylesheet.css" rel="stylesheet" 
type="text/css">
</head>

<body>

<table width="700" border="0" align="center" cellpadding="5" 
cellspacing="0">
  <tr bgcolor="#FDFCFF">

    <td colspan="4">    <img 
src="http://www.foodplanet.co.uk/email/Logo.gif" width="217" 
height="50"> </td>
  </tr>
  <tr bgcolor="#004C74" >
    <td height="5" colspan="4"></td>
  </tr>
  <tr bgcolor="#6897C5" class="FooterText">
    <td width="25%"><div align="left" 
class="FooterText"><strong>'.$subject.'</strong></div></td>

    <td width="25%"><div align="left" class="FooterText"></div></td>
    <td width="25%">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr valign="top" bgcolor="#FFFFFF">
    <td colspan="4" class="MainText"><p><strong> <span class="Header">'.$header.'</span></strong></p>
      <p><strong>This is the confirmation email for the online ordering. Please make sure you select the appropriate options.</strong></p>
      <form name="form1" method="post" action="http://www.foodplanet.co.uk/Scripts/open_confirmation.php?id='.$id.'">
        <table width="93%" border="0">
          <tr>
            <td width="57%"><div align="right"><strong>Are you Open for Business? </strong></div></td>
            <td width="24%"><select name="bus_open" id="bus_open">
                <option>Yes</option>
                <option>No</option>
                <option>Please Select...</option>
            </select></td>
            <td width="19%">&nbsp;</td>
          </tr>
          <tr>
            <td><div align="right"><strong>Are you taking Online Ordering? </strong></div></td>
            <td><select name="online_ordering" id="online_ordering">
                <option>Please Select...</option>
				<option>Yes</option>
                <option>No</option>
                </select></td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td><input name="" type="button" />
            <td>&nbsp;</td>
          </tr>
        </table>
      </form>
      <p><strong></strong><br>
        
        <br>
        </p></td>
  </tr>
  <tr bgcolor="#004C74">
    <td colspan="4" bgcolor="#004C74" class="FooterText"><div align="center">
      <p
class="FooterText">------------------------------------------------------------------
Email Disclaimer
------------------------------------------------------------------</p>
      <p align="left" class="FooterText"><strong>Confidentiality: 
</strong>This e-mail and any attachments are intended for the addressee only and is confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this e-mail and highlight the error.</p>

      <p align="left" class="FooterText"><strong>Security: </strong>This email and any attachments are believed to be free from any virus but it is the responsibiliy of the recipient to ensure this is so. </p>
    </div></td>
  </tr>
</table>
</body>
</html>     
    ';
   
    mail($to, $subject, $message, $headers);