Advertisement
chrishajer

add some new lines to HTML email notification

Oct 6th, 2011
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.97 KB | None | 0 0
  1. <?php
  2. // Table body
  3. $email_body .= "<tbody>";
  4. $email_body .= "<tr><td>&nbsp;</td></tr>\n";
  5. $email_body .= "<tr style='background: #d7e3ef;'><th colspan='2'><h3 style='padding:0;margin:0;'>Ordre info:</h3></th></tr>\n";
  6. $email_body .= "<tr style='border-bottom:1px solid #ddd;'><th>Buffet:</th><td>".$buffet."</td></tr>\n";
  7. if(!empty($starter))            $email_body .= "<tr style='border-bottom:1px solid #ddd;'><th>Forret:</th><td>".$starter."</td></tr>\n";
  8. if(!empty($desert))             $email_body .= "<tr style='border-bottom:1px solid #ddd;'><th>Desert:</th><td>".$desert."</td></tr>\n";
  9. if(!empty($bread))              $email_body .= "<tr style='border-bottom:1px solid #ddd;'><th>Brød:</th><td>".$bread."</td></tr>\n";
  10. $email_body .= "<tr style='border-bottom:1px solid #ddd;'><th>Kuverter:</th><td>".$seatings."</td></tr>\n";
  11. $email_body .= "<tr style='border-bottom:1px solid #ddd;'><th>Dato:</th><td>".$date."</td></tr>\n";
  12. $email_body .= "<tr style='border-bottom:1px solid #ddd;'><th>Tid:</th><td>".$time."</td></tr>\n";
  13. if(!empty($institution))        $email_body .= "<tr style='border-bottom:1px solid #ddd;'><th>Institution:</th><td> ".$institution."</td></tr>\n";
  14. if(!empty($company))            $email_body .= "<tr style='border-bottom:1px solid #ddd;'><th>Firma:</th><td>".$company."</td></tr>\n";
  15. if(!empty($ean))                $email_body .= "<tr style='border-bottom:1px solid #ddd;'><th>EAN:</th><td>".$ean."</td></tr>\n";
  16. if($use_dif_address == 'Yes')   $email_body .= "<tr><td>&nbsp;</td></tr>\n";
  17. if($use_dif_address == 'Yes')   $email_body .= "<tr style='background: #d7e3ef;'><th colspan='2'><h3 style='padding:0;margin:0;'>Bestillings adresse:</h3></th></tr>\n";
  18. if($use_dif_address == 'Yes')   $email_body .= "<tr style='border-bottom:1px solid #ddd;'><th>Navn:</th><td>".$contact_name."</td></tr>\n";
  19. if($use_dif_address == 'Yes')   $email_body .= "<tr style='border-bottom:1px solid #ddd;'><th>Adresse:</th><td>".$contact_address."</td></tr>\n";
  20. if($use_dif_address == 'Yes')   $email_body .= "<tr style='border-bottom:1px solid #ddd;'><th>Postnummer & By:</th><td> ".$contact_zip." ".$contact_city."</td></tr>\n";
  21. if(!empty($phone))              $email_body .= "<tr style='border-bottom:1px solid #ddd;'><th>Telefon:</th><td> ".$phone."</td></tr>\n";
  22. $email_body .= "<tr style='border-bottom:1px solid #ddd;'><th>Mobil:</th><td>".$mobile."</td></tr>\n ";
  23. $email_body .= "<tr style='background: #d7e3ef;'><th colspan='2'><h3 style='padding:0;margin:0;'>Pris</h3></th></tr>\n";
  24. $email_body .= "<tr style='border-bottom:1px solid #ddd;'><th>Buffet pris:</th><td>Kr. ".$buffet_price.",-</td></tr>\n";
  25. $email_body .= "<tr style='border-bottom:1px solid #ddd;'><th>Leveringspris:</th><td>Kr. ".$shippingrate.",-</td></tr>\n";
  26. $email_body .= "<tr style='border-bottom:1px solid #ddd;'><th>Pris ialt:</th><td><strong>Kr. ".$total_price.",-</strong></td></tr>\n";
  27. $email_body .= "<tr><td>&nbsp;</td></tr>\n";
  28. if(!empty($message))            $email_body .= "<tr><th>Kommentar:</th><td><p>".$message."</p></td></tr>\n";
  29. $email_body .= "</tbody>";
  30. // End table body
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement