Jump to content

testing email


contra10

Recommended Posts

im testing my email using postcast server free...

 

im using this code

 

<?php
$headers = "From:[email protected]\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("[email protected]","Friend Request",$body, $headers);
?>

 

the "to" and "subject" shows but i cant view the body and i can't view the from

Link to comment
https://forums.phpfreaks.com/topic/146201-testing-email/
Share on other sites

ok that worked for "from"

 

<?php
<?php
$headers = "From: [email protected]\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("[email protected]","Friend Request",$body, $headers);
?>

 

how about body

Link to comment
https://forums.phpfreaks.com/topic/146201-testing-email/#findComment-767571
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.