Public paste
Undefined
By: mail functie | Date: Dec 12 2007 13:39 | Format: PHP | Expires: never | Size: 1.22 KB | Hits: 1287

  1. if(mysql_query($query))
  2.                 {
  3.                         print '<h5>Uw account is aangemaakt! U ontvangt een bevestigings e-mail.</h5>';
  4.                         // multiple recipients
  5.          $to  = $email_db;
  6.  
  7. // subject
  8. $subject = 'Account gegevens op Fundahosting';
  9.  
  10. // message
  11. $message = '
  12. <html>
  13. <head>
  14.  <title>Uw account gegevens op Fundahosting.nl</title>
  15. </head>
  16. <body>
  17.  <strong>Beste '.$voorletters.'. '.$achternaam.'</strong>
  18.  <p>U heeft zich geregistreerd op www.fundahosting.nl om '.timetodate(time('d M y')).'</p>
  19.  <p><strong>Uw gegevens:</strong><br /><br />
  20.  E-mail: '.$email.'<br />
  21.  Wachtwoord: '.$mail_pw.'</p>
  22.  
  23.  <p>Kopieer onderstaande link en plak deze in uw browser om uw account te activeren:<br />
  24.  <a href="http://www.fundahosting.nl/index.php?p=account&amp;key='.$activationkey.'">http://www.fundahosting.nl/index.php?p=account&amp;key='.$activationkey.'</a>
  25.  </p>
  26. </body>
  27. </html>
  28. ';
  29.  
  30. // To send HTML mail, the Content-type header must be set
  31. $headers  = 'MIME-Version: 1.0' . "rn";
  32. $headers .= 'Content-type: text/html; charset=iso-8859-1' . "rn";
  33.  
  34. // Additional headers
  35. $headers .= 'From: ik@rub3n.nl' . "rn";
  36.  
  37. // Mail it
  38. mail($to, $subject, $message, $headers);
  39.  
  40. print "$to, $subject, $message, $headers";
  41.                 }