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 |
What is the difference between the functions unlink and unset?
Can I use node js with php?
What is the use of array_search() in php?
How to call php function from javascript using ajax?
What is difference between web service and api?
Tell me what is the default session time in php?
What is $_ get?
What are the 5 types of data?
What is null value in php?
What is difference between sql and php?
Specify array sort functions available in php ?
What are the encryption functions in php?