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 |
How many ways you can delete a session variable ?
Tell me what are magic methods?
What is csrf validation?
What are psrs?
Which method removes the last element from the end of an array?
What is the difference between the functions UNLINK and UNSET?
Tell me how can we pass the variable through the navigation between the pages?
What is the difference between php and core php?
What are the different ways to login to a remote server?
Do you know what does mvc stand for and what does each component do?
Tell me how stop the execution of a php scrip?
What is the use of @ in php?