Mail function in php

Mail function in php
  • Mail function use for a mailing data programmatically
  • using mail function you can mail multiple user at a time like CC and BCC
  • Mail functions not working in localhost
<?php

$to = "to@example.com";//receiver MailId

$subject = "subject";//subject of mail

$Messagebody= "Message body";//body of message

$headers = "From: form@example.com" . "\r\n" .

"CC: formCC@example.com";

mail($to,$subject,$Messagebody,$headers);

?>

11 Replies to “Mail function in php”

  1. I simply wanted to write a quick comment so as to thank you for those fabulous instructions you are posting on this site. My extended internet search has finally been paid with beneficial strategies to talk about with my family and friends. I would state that that many of us site visitors actually are undoubtedly fortunate to live in a superb place with many marvellous individuals with valuable tactics. I feel pretty fortunate to have discovered your entire web page and look forward to so many more cool minutes reading here. Thanks once more for a lot of things.

  2. I’m commenting to make you know what a notable encounter our princess developed reading the blog. She even learned plenty of details, which included how it is like to possess an excellent teaching character to make certain people really easily completely grasp specific multifaceted things. You actually did more than her desires. Thanks for imparting these helpful, healthy, explanatory and even unique thoughts on this topic to Tanya.

Leave a Reply

Your email address will not be published. Required fields are marked *