Hi,
I am new to PHP so this might be a silly question. I had this code to send email from a form on the website but all of a sudden it stopped working. If anyone could shed some light I would appriciated it.
Cheers
jonas
I am new to PHP so this might be a silly question. I had this code to send email from a form on the website but all of a sudden it stopped working. If anyone could shed some light I would appriciated it.
Cheers
jonas
Code:
<?php
$frmname = "Name: $Name";
$frmemail = "Email: $email";
$frmphone = "Phone Number: $Phone";
$frmEnquiry = "Enquiry: \n $Enquiry";
$message = "$frmname \n$frmemail \n$frmphone \n$frmEnquiry";
$to = "info@site.com.au";
$from_header = 'From: info@site.com.au' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
//send mail - $subject & $contents come from surfer input
mail($to, $subject, $message , $from_header);
// redirect back to url visitor came from
header("Location: [URL unfurl="true"]http://www.site.com.au/contactthanks.html");[/URL]
?>