shirley Posted October 26, 2007 Share Posted October 26, 2007 Hello! A question! How can I get breaks in the sended emailmessage bij a emailform with this code: <?php $sendto = "*********.nl"; $action = $_REQUEST["action"]; if ($action == "email") { $voornaam = $_REQUEST["voornaam"]; $achternaam = $_REQUEST["achternaam"]; $school = $_REQUEST["school"]; $klas = $_REQUEST["klas"]; $email = $_REQUEST["email"]; $vraag1 = $_REQUEST["vraag1"]; $vraag2 = $_REQUEST["vraag2"]; $vraag3 = $_REQUEST["vraag3"]; $vraag4 = $_REQUEST["vraag4"]; $vraag5 = $_REQUEST["vraag5"]; $vraag6 = $_REQUEST["vraag6"]; $vraag8 = $_REQUEST["vraag8"]; $vraag9 = $_REQUEST["vraag9"]; $message = 'Email vanaf bla.nl. Voornaam: '.$voornaam.' Achternaam: '.$achternaam.' School: '.$school.' Klas: '.$klas.' Email: '.$email.' Vraag 1: '.$vraag1.' Vraag 2: '.$vraag2.' Vraag 3: '.$vraag3.' Vraag 4: '.$vraag4.' Vraag 5: '.$vraag5.' Vraag 6: '.$vraag6.' Vraag 8: '.$vraag8.' Vraag 9: '.$vraag9.' '; $headers = "From: \"$email\" <$Email>\r\n"; $headers .= 'Content-Type: text/plain; charset="us-ascii"'; if (@mail($sendto, "Email vanaf bla.nl", $message, $headers)) { echo("<script language=javascript>window.location='index.php';</script>"); } else { echo("<script language=javascript>alert(\"Error! De email is niet verzonden!\");history.go(-1);</script>"); } } ?> Link to comment https://forums.phpfreaks.com/topic/74849-emailform-breaks-in-outlook/ Share on other sites More sharing options...
adam291086 Posted October 26, 2007 Share Posted October 26, 2007 i am new to php but look at the link below. I am not sure it will work because its html breaks, but its worth a try http://www.phpfreaks.com/forums/index.php/topic,165055.0.html Link to comment https://forums.phpfreaks.com/topic/74849-emailform-breaks-in-outlook/#findComment-378442 Share on other sites More sharing options...
shirley Posted October 26, 2007 Author Share Posted October 26, 2007 I had already tried, but it don't work Link to comment https://forums.phpfreaks.com/topic/74849-emailform-breaks-in-outlook/#findComment-378445 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.