How to configure PHP to send e-mail?

后端 未结 8 1684
星月不相逢
星月不相逢 2020-12-10 07:12

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         


        
8条回答
  •  旧巷少年郎
    2020-12-10 07:34

    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.

提交回复
热议问题