Jump to content

Emailform, breaks in outlook?


shirley

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.