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 is session data stored?
Do you know how can php and html interact?
Is laravel frontend or backend?
What is abstraction php?
What types of Data Can Be Used as Array Keys?
How is it possible to parse a configuration file?
Is php closing tag necessary?
What is mem_cache ? How do you put a database query into that ?
What is the maximum size of a database in mysql?
What is difference between array_merge and array_combine?
Is php a mvc?
What is the use of trim function in php?