Sending emails with WAMP

后端 未结 6 1885
无人共我
无人共我 2020-12-03 00:17

I use the latest WAMP and I get this when I try to send emails:

Warning: mail() [function.mail]: Failed to connect to mailserver at \"localhost\" port 25, ve         


        
6条回答
  •  萌比男神i
    2020-12-03 00:54

    You are not running an smtp server on your machine, but you don't have to. Just set SMTP to a open smtp server for example:

    ini_set('SMTP', 'smtp.yourisp.com');
    

    Take a look at your ISP's home page or http://www.e-eeasy.com/SMTPServerList.aspx for list of SMTP servers.

    If you have a desktop mail program, you can use the same address as you use for outgoing mail.

提交回复
热议问题