Sending PHP mail from Windows server

后端 未结 2 341
鱼传尺愫
鱼传尺愫 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条回答
  • 2021-01-05 18:29

    In a windows environment PHP uses SMTP insted of the Linux binary sendmail (or replacement)

    You need to edit php.ini according to this page to be able to send e-mail via the mail() function.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题