Sending emails with WAMP

后端 未结 6 1878
无人共我
无人共我 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条回答
  •  醉梦人生
    2020-12-03 00:45

    I think your mail server (SMTP) outgoing mail server is not configured in your php.ini file.

    Have a look at this:

    http://email.about.com/od/emailprogrammingtips/qt/Configure_PHP_to_Use_a_Remote_SMTP_Server_for_Sending_Mail.htm

    Also hotmail doesn't allow you to use their mailservers. You should use yahoo or gmail.

提交回复
热议问题