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 https://forums.phpfreaks.com/topic/247952-mail-from-problems/ 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 = '[email protected]'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: [email protected]' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> Quote Link to comment https://forums.phpfreaks.com/topic/247952-mail-from-problems/#findComment-1273245 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 https://forums.phpfreaks.com/topic/247952-mail-from-problems/#findComment-1273255 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.