what is code for email sending through localhost pc..?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / adrevol
You can send mails using mail() function in php.
But you need to configure the SMTP in your php.ini file
by default, it will be set to localhost
change the entry of SMTP = localhost to
SMTP =mail.xxx.com
| Is This Answer Correct ? | 5 Yes | 6 No |
List the different types of print functions available in php?
What is the difference between == and === operator in PHP?
where do we use htaccess?
Tell me how is it possible to propagate a session id?
What are the encryption functions available in PHP?
Explain which cryptographic extension provide generation and verification of digital signatures?
Does php 7 support mysql?
What are the security measures we have to take for our site not to hack by others?
Explain me differences between get and post methods?
What is c++ polymorphism?
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?
how many types of inheritance is there in php? name there?