what is code for email sending through localhost pc..?
Answer Posted / tanmoy
localhost pc not support to send mail.
but we can check it in our localhost web browser by this code:
$val= mail($to,$sub,$message,$headers);
echo "TO::".$to."<br>";
echo "FROM::".$fr."<br>";
echo "Sub::".$sub."<br>";
echo "Message:".$message."<br>";
exit();
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
Which functions are used to count the total number of array elements in php?
How to find length of an array in php ?
Which is better php praogramming or cad/cam scope wise and also salaray wise?
How to set a page as a home page in a php based site?
Explain the difference between urlencode and urldecode?
What is the difference between apache vs niginx?
What is the difference between print() and echo() in PHP?
Is php a cms?
How failures in execution are handled with include() and require() functions?
How do I update php?
What does session start do in php?
What is the difference between indexed and associative array?
is that "enumerated array" equal to "numeric array"?
What is the use of inner join in mysql?
What are advantages of .htaccess?