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 difference between print_r and echo in php?
hello experts good morning to everyone ! at present am now learning LAMP course sir( linux, apache,mysql and php) after finishing this course can i create my own website without investment is it possible ? please can any one tell sir and also tell me how can i upload my project after finishing the project in internet ? please tell the ways sir please send ur valuable suggestions to kiranpulsar2007@gmail.comcom
What does $this do in php?
Is php a programming language?
What is the use of header() function in PHP? What the Limitation of HEADER()?
Where can I find php ini file?
what is php?
How to change the principal password?
What is the difference between InnoDB and MyIsam
1 Answers Brain Technosys, IBM, TCS, TLI Software, Wipro,
Is php developer in demand?
List some sorting functions in php?
What is the use of php and mysql?