Name No name entered
Email No email entered
Message No phone entered
From = "mail@yourdomain.com"; $mail->FromName = "Contact Form"; $mail->AddAddress("helpdesk@dgmr.nl","DGMR Helpdesk"); // Put your email // $mail->AddAddress("another_address@example.com","Name 2"); // addresses here $mail->WordWrap = 50; $mail->IsHTML(true); $mail->Subject = "Helpdesk request form"; $mail->Body = $body; $mail->AltBody = "This is the text-only body"; if(!$mail->Send()) { $recipient = 'helpdesk@dgmr.nl'; $subject = 'Contact form failed'; $content = $body; mail($recipient, $subject, $content, "From: helpdesk@dgmr.nl\r\nReply-To: $email\r\nX-Mailer: DT_formmail"); exit; } ?>