raptor30506090 Posted September 27, 2011 Share Posted September 27, 2011 Hi all hope you can help im just doing a simple form but i cant set the mail from message $name = mysql_escape_string($_POST['name']); $number = mysql_escape_string($_POST['contactNum']); $from = "Webdazsign"; $email = "email address"; $header = "header"; mail($email, $header, $name, $number, $from); header("Location: ../index.php"); Quote Link to comment Share on other sites More sharing options...
Buddski Posted September 27, 2011 Share Posted September 27, 2011 There are many examples on the PHP Manual about sending emails. mail() Good example <?php $to = 'nobody@example.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> Quote Link to comment Share on other sites More sharing options...
raptor30506090 Posted September 27, 2011 Author Share Posted September 27, 2011 That is great thank you very much Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.