电子邮件服务器创建失败 [英] Failure in Email server creation

查看:151
本文介绍了电子邮件服务器创建失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法通过"localhost"端口25连接到邮件服务器,无法在php.ini中验证"SMTP"和"smtp_port"设置或使用ini_set()




这是显示的错误,我也有如下更改php.ini文件的建议:

SMTP = smtp.isp.net
sendmail_from = me@isp.net

实际上是什么意思.我认为他高于可能不适用于我,所以我应该在SMTP和sendmail_from部分中写什么?

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




This is the error displayed, also i got a suggestion to change php.ini file as below:

SMTP= smtp.isp.net
sendmail_from = me@isp.net

What does it actually mean. I think he above e.g. might not be applicable to me so what should i write inplace of SMTP and sendmail_from section

推荐答案

要为每个SMTP发送邮件?然后,您需要一个SMTP服务器进行通信.根据定义,端口25用于SMTP. (有一个众所周知的端口列表,告诉您哪个服务使用哪个端口和协议.询问某人您应该使用哪个SMTP服务器,然后相应地更改php.ini中的配置.假设装有您的Web服务器的服务器也正在运行SMTP服务器(很可能不是这种情况),并确保端口25是正确的端口.它应该是正确的端口,但是您永远都不知道什么混蛋运算符来自地狱的人可能会想到这一点.;)

通过打开命令外壳并键入以下命令,确保可以从Web服务器访问SMTP服务器:

Want to send mail per SMTP? Then you need a SMTP server to communicate with. Per definition the port 25 is used for SMTP. (There is a list of well known ports that tell you which service uses which ports and protocols. Ask somebody what SMTP server you are supposed to use, then change the configuration in php.ini accordingly. From what I garner from your post the configuration is assuming that the server with your web server on it is also running an SMTP server which most probably not the case. Also make sure that port 25 is the correct port. It should be the correct port, but you never know what some bastard operator from hell might think about that. ;)

Make sure that the SMTP server is reachable from your web server by opening a command shell and typing this:

telnet hostname.of.mail.server 25



其中hostname.of.mail.server是SMTP服务器的名称,在您的情况下,应使用正确的端口号替换25.如果连接尝试成功,屏幕将变黑,否则尝试连接时将出现错误.

问候,

曼弗雷德(Manfred)



Where hostname.of.mail.server is the name of the SMTP server and 25 should substituted with whichever is the correct port number in your case. If the connection attempt is successful the screen will blank else there will be an error when trying to connect.

Regards,

Manfred


这篇关于电子邮件服务器创建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆