dongmu5815 2016-04-28 14:00
浏览 67

sendMail不会从服务器发送电子邮件

So, I have a server set up in Rackspace, which has Apache2 and PHP installed. A web site is hosted there with no problems. The website has a form that sends the information to an email using a php mail() function. The problem is that the sendMailconfig is giving me a problem with the host name. It says:

Warning: local host name app1 is not qualified.

It uses the local host then, but the mail log says that 127.0.0.1 refused the connection, so the mail does not go away. This is my hosts file. I will put xxx on some numbers not to disclose private info:

127.0.0.1 localhost
10.xxx.xxx.247  app1
162.xxx.xxx.164 app1
2001:xxxx:xxxx:xxxxx:xxxx:xxx:3abc app1

If I try to change the name of the host to app1.xxxx.com which is a working domain since the web site is there, it tells me hostname: Name or service not known.

Any ideas why sendmail is not working?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 C++ yoloV5改写遇到的问题
    • ¥20 win11修改中文用户名路径
    • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
    • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
    • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
    • ¥15 帮我写一个c++工程
    • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
    • ¥15 关于smbclient 库的使用
    • ¥15 微信小程序协议怎么写
    • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?