Sending email from localhost

前端 未结 5 1540
野性不改
野性不改 2020-11-30 13:04

I\'m using WampServer on Windows to test a site. I have a registration system where users get a confirmation email.

Is it possible to send emails from a localhost?<

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-30 13:42

    If you want to send emails from localhost directly, you need to install a Mail Transport Agent (MTA), or if you like, a SMTP service.

    IIS provides one. You can otherwise find some others on Google.

    You can also change your php.ini mail settings. This won't use localhost per say to send emails, but a relay host that will allow you to send emails from a PHP script.

提交回复
热议问题