Nieuw lid |
|
Ik heb het onderstaande stukje code, hij stuurt de e-mail wel alleen de HTML gebruikt hij niet, wat doe ik fout?
if($_POST['submit']) {
$select = "SELECT * FROM groothandelaren WHERE email = '". $_POST['email'] ."'";
$query = mysql_query($select) OR die(mysql_error());
while ($record = mysql_fetch_array($query)) {
if($record != "") {
$name = "Site";
$email = "noreply@site.nl";
$recipient = $record['email'];
$mail_body = "<b>Beste </b>, .";
$subject = "site onderwerp";
$header = 'MIME-Version: 1.0' . "\r\n";
$header = 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$header = "Van: ". $name . " <" . $email . ">\r\n";
mail($recipient, $subject, $mail_body, $header);
if($_POST['submit']) { $select = "SELECT * FROM groothandelaren WHERE email = '". $_POST['email'] ."'"; if($record != "") { $name = "Site"; $email = "noreply@site.nl"; $recipient = $record['email']; $mail_body = "<b>Beste </b>, ."; $subject = "site onderwerp"; $header = 'MIME-Version: 1.0' . "\r\n"; $header = 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $header = "Van: ". $name . " <" . $email . ">\r\n"; mail($recipient, $subject, $mail_body, $header);
|