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
Does wordpress run on php 7?
Write a program to get lcm of two numbers using php?
How to write in a file in php?
How to get ip address of clients machine?
What is the difference between mysqli_fetch_object() and mysqli_fetch_array()?
How do I escape data before storing it in the database?
What are php magic methods?
Explain the difference between urlencode and urldecode?
Explain what is meant by pear in php?
How do I check if a given variable is empty?
What is the difference between characters 23 and x23?
How do you destroy a particular or all Sessions?
What is the use of session and cookies in php?
What is the basic syntax of Php?
Explain what is the difference between mysql_fetch_array() and mysql_fetch_assoc()?