EchoFool Posted December 20, 2008 Share Posted December 20, 2008 I have a mail function which won't structure the text it justs comes out in a single line with no break lines and i do not know why ... this is what i got: <?php $subject = "Login Infomation Desk"; $headers = 'MIME-Version: 1.0' . "/r/n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "/r/n"; $headers .= 'Reply-To: '.$Email; $message = "A username ".$Username." has requested help !/r/n"; $message = $message. "Their message is: /r/n".$Message."/r/n"; $message = $message. "Username is: ".$Username."/r/n"; $message = $message. "Reply To: ".$Email; mail('$myemail', $subject, $message, $headers); ?> I get this as an email: A username user has requested help !/r/nTheir message is: /r/ntest/r/nUsername is: user/r/nEmail is: test@ etc.co.uk What am i doing wrong? Link to comment https://forums.phpfreaks.com/topic/137831-solved-mail-function/ Share on other sites More sharing options...
waynew Posted December 20, 2008 Share Posted December 20, 2008 \n Not /n Link to comment https://forums.phpfreaks.com/topic/137831-solved-mail-function/#findComment-720352 Share on other sites More sharing options...
EchoFool Posted December 20, 2008 Author Share Posted December 20, 2008 argh thank you, do you know how to load up html colours into it when using html ? :S Link to comment https://forums.phpfreaks.com/topic/137831-solved-mail-function/#findComment-720356 Share on other sites More sharing options...
waynew Posted December 20, 2008 Share Posted December 20, 2008 Have a look see... Link to comment https://forums.phpfreaks.com/topic/137831-solved-mail-function/#findComment-720358 Share on other sites More sharing options...
EchoFool Posted December 20, 2008 Author Share Posted December 20, 2008 thanks Link to comment https://forums.phpfreaks.com/topic/137831-solved-mail-function/#findComment-720372 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.