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 won't be able to send a message through other people mail servers. Check with your host provider how to send emails. Try to send an email from your server without PHP, you can use any email client like Outook. Just after it works, try to configure PHP.ini with your email client SMTP (sending e-mail) configuration.