How to configur server settings to send mail using Php
I want to send mail from my php site. But i dont have any idea about how to configur it. I am using BigRock Hosting service. And the code below shown is using now as the sendmail.php page to send mail..
$to = $to;
$subject = "My subject here";
$message = "Hello! This is a simple email message.";
$from = "Mymailaddress@example.com";
$headers = "From:" . $from;
echo "Mail Sent.";
Please help me!!
3 Months Ago
Related Article:PHP send mail help - my loop is wrong!
is a solved PHP discussion thread by andymcr that has 5 replies, was last updated 1 month ago and has been tagged with the keywords: php, loop, mail.
Sometimes your host will set things so that you also make use of the 5th parameter (additional parameters). This is often to set flags, e.g. of 5th param:
See your host's FAQ's about using mail(). Almost every host I've used for shared hosting accounts insist on this. Otherwise users can jojob and send emails which look as though they come from fictitious or other people's addresses.