I need to send mail to the users of my website using php script. I have tried using mail function in php. My code is as follows:
$to = \"myweb@gmail.co
You need to have a smtp service setup in your local machine in order to send emails. There are many available freely just search on google.
If you own a server or VPS upload the script and it will work fine.