From = "marlon@vudu.za.net"; // from address
$mail->FromName = "Peter Klipfel"; // From name in FROM: field
$mail->Subject = "FROM THE FORM!!!"; // subject
$mail->AddAddress("marlon@mbvdl.net"); // recipient
// ====== STOP CHANGES ======= //
$mail->SetLanguage('en');
$body = "\nThe following data was submitted from the webform: \n\n";
foreach($_POST as $item) {
$body .= "\n$item";
}
$body .= "\n\nThank you";
$mail->Body = $body;
if(!$mail->Send()) {
print "
There was some error sending this mail";
}
print "
"; var_dump($mail); print ""; print "Error is: " . $mail->ErrorInfo; //print "
"; //var_dump($incoming); //print ""; ?>