dongti8535 2014-05-15 13:28
浏览 62
已采纳

使用PHP邮件功能发送电子邮件,配置邮件服务器

I am making a web application (html + php + apache + mysql) which is on a Debian server, but when I try to send any mail using the php mail function, it is not simply sent me and throws an error. I guess I should install some smtp mail service. What do you recommend that is easy for a novice user settings?

I install a library called sendmail in localhost that simulates that smpt service in WAMP server, but when I upload the code to the production server simply does not send mail.

I researched on some mail servers like postfix, but the information I get is confusing to me. I want to recommend me some effective guide, or any server that is easy to configure for a novice user in the subject.

sorry if the question is obvious, but I want effective information

  • 写回答

1条回答 默认 最新

  • douewei1665 2014-05-15 13:49
    关注

    For sending a mail you just simply need a smtp client that sends a mail to a destination. You don't need to install any smtp server for just sending a mail.

    A smtp server is for receiving mails( and other stuff about mails).

    All you need to make php sending a mail is to install a smtp client like sendmail

    then edit php.ini to be like this:

    sendmail_path= sendmail -t -i
    

    EDIT: I guess debian has sendmail by default.

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

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部