douqingnao9246 2010-06-19 13:09
浏览 662
已采纳

无法连接到“localhost”端口25上的邮件服务器

I have a little problem.

When I click send on my contact form I get the following warning:

Warning: mail() [function.mail]:
Failed to connect to mailserver at "localhost" port 25,
verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()

I use 64bit Win7, but I have no idea what should I set up to make this work.

  • 写回答

1条回答 默认 最新

  • duanliao3826 2010-06-19 13:46
    关注

    In your php.ini file you can configure which mailserver to use:

    [mail function]
    SMTP = mymailserver.example.com
    

    Alternatively you can install a local mailserver as described here: http://www.php.net/manual/en/ref.mail.php#77499

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制