Jump to content

[SOLVED] mail function


EchoFool

Recommended Posts

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

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.