Page 1 of 1

php mail problem

Posted: Tue Dec 16, 2008 8:22 am
by itsmani1
When i send an email I want to set from and after Hi i want text to move to next line.

I am sending mail on hotmail for test purpose. I don't want to use html content type

Can anyone help me out?

thanks in advance.

Code: Select all

                $to = $_POST["email"];
                $subject = 'Your Password';             
                $message = 'Hi \n'. 'Your new password is:'.$substr;                
                $headers  = 'MIME-Version: 1.0' . "\r\n";
                $headers .= 'Content-type: text/plain; charset=iso-8859-1' . "\r\n";    
                $headers .= contactus . "\r\n";
                mail($to, $subject, $message, $headers);