Sending PHP mail from Windows server

后端 未结 2 340
鱼传尺愫
鱼传尺愫 2021-01-05 17:47

I have a form on my page. When the user hits the Send button - it\'s supposed to send an email with the details he entered in the form. Up until recently the form was hosted

2条回答
  •  -上瘾入骨i
    2021-01-05 18:39

    On Linux, PHP uses an application called sendmail. Of course there is no similar applicaion on Windows. As php.ini file says, to be able to work with mail function, you need to setup mail server coordinates. If You don't have mail server, it is not possible to send emails from PHP. Of course You could use some external server like gmail.

提交回复
热议问题