Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 6th, 2010  |  syntax: PHP  |  size: 0.63 KB  |  hits: 44  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.        
  2.                 $message = '<html>
  3.  <body bgcolor="#DCEEFC">
  4.    <center>
  5.        <b>Looool!!! I am reciving HTML email......</b> <br>
  6.        <font color="red">Thanks Mohammed!</font> <br>
  7.        <a href="http://www.maaking.com/">* maaking.com</a>
  8.    </center>
  9.      <br><br>*** Now you Can send HTML Email <br> Regards<br>MOhammed Ahmed - Palestine
  10.  </body>
  11. </html>';
  12.                
  13.                 $to = "admin@domain.at";
  14.                 $from = "no-reply@domain.at";
  15.             $subject = "Kontaktformular - ".$_POST['name'];
  16.                
  17.                 $headers  = "From: $from\r\n";
  18.         $headers .= "Content-type: text/html\r\n";
  19.  
  20.         mail($to, $subject, $message, $headers);