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 are the benefits of using php?
Which have the fastest execution between mysql_fetch_array() and mysql_fetch_assoc()
How to run the interactive php shell from the command line interface?
How to create a session? How to set a value in session?
Can I use php in visual studio?
Does empty check for null?
is anybody upload more than 100mb file using PHP upload script in ONLINE SERVER (using .htaccess file)? please give some idea...
How to check if a string contains a character or word in php?
What is put method in php?
how to overcome server time behind twleve hours compare to local system time
What does pear stand for?
How we can retrieve the data in the result set of mysql using php?