php mail problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

php mail problem

Post 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);
 
Post Reply