Hi,
I'm looking for a method to put some auto generated content in an auto generated e-mail. Can someone help me and tell me how to get this autput into a string?
this is my script sofar... (BTW dont look at the rest of the script because its just for testing purpouse)
<?
$i = 0;
$numb = 1;
$counter = 5;
$formcontent = {
while ( $i < $counter ) {
echo "$numb <br>";
++$numb;
$counter--;
}
}
echo $formcontent;
?>
<?php
$to = "myadres@mail.com";
$subject = 'reservering';
$message = $formcontent;
$participant = $_POST['email'];
$headers = "From: $participant" . "\r\n" .
'Reply-To: somename@mail.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
echo "Uw reservering is verzonden";
?>
Thanx a lot 🙂