Contact us

SMTPDebug = 3; // uncomment to enable verbose debug output // you will need to change some of the following settings $mail->isSMTP(); $mail->Host = 'mail.domain.com'; $mail->SMTPAuth = true; $mail->Username = 'ciao@domain.eu'; $mail->Password = 'password'; #$mail->SMTPSecure = 'tls'; $mail->Port = 2525; $mail->setFrom('no-reply@domain.eu', 'Web enquiry'); $mail->addAddress($to); $mail->addReplyTo($emailAddr, $yourName); $mail->isHTML(false); $mail->Subject = 'Website enquiry'; $mail->Body = $body; if (!$mail->send()) { echo '

Sorry, your message could not be sent. Mailer Error: ', $mail->ErrorInfo, '

', PHP_EOL; } else { echo '

Your message has been sent to ', $conArray[$contactNr], ' and will be attended to as soon as possible.

', PHP_EOL; echo '

 

', PHP_EOL; } else : if ($missing) { // missing or erroneous entries echo '

You have not completed the form correctly. Please fill in all fields and press Send when complete.

', PHP_EOL; } else { // show form echo '

If you would like to get in touch, just complete the form below.

', PHP_EOL; } $noName = isset($noName) ? $noName : false; $noEmail = isset($noEmail) ? $noEmail : false; $noMessage = isset($noMessage) ? $noMessage : false; $noContact = isset($noContact) ? $noContact : false; ?>
chars remaining