contra10 Posted February 21, 2009 Share Posted February 21, 2009 im testing my email using postcast server free... im using this code <?php $headers = "From:me@test.com\r\n". "To:$email". "MIME-Version: 1.0\r\n" . "Content-Type: multipart/mixed;\r\n"; $body="$username has added you as a friend"; mail("me@test.com","Friend Request",$body, $headers); ?> the "to" and "subject" shows but i cant view the body and i can't view the from Quote Link to comment Share on other sites More sharing options...
Stooney Posted February 21, 2009 Share Posted February 21, 2009 Try <?php $headers = "From: me@test.com\r\n". "To: $email". "MIME-Version: 1.0\r\n" . "Content-Type: multipart/mixed;\r\n"; $body="$username has added you as a friend"; mail("me@test.com","Friend Request",$body, $headers); ?> Quote Link to comment Share on other sites More sharing options...
contra10 Posted February 21, 2009 Author Share Posted February 21, 2009 ok that worked for "from" <?php <?php $headers = "From: me@test.com\r\n". "To: $email". "MIME-Version: 1.0\r\n" . "Content-Type: multipart/mixed;\r\n"; $body="$username has added you as a friend"; mail("me@test.com","Friend Request",$body, $headers); ?> how about body Quote Link to comment Share on other sites More sharing options...
contra10 Posted February 21, 2009 Author Share Posted February 21, 2009 i tried taking it out of $body variable and just leaving it in quotes but that didn;t work Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.