cakeEmail getaddrinfo failed:没有这样的主机

时间:2018-06-13 14:15:47

标签: php email cakephp

我正在尝试在cakephp中发送一封电子邮件(当时不需要使用ssl),配置似乎很好,但我一直收到上面的错误,下面是我的smtp配置:

public $smtp = array(
    'transport' => 'Smtp',
    'from' => array('test@mambihost.com' => 'Mambihost'),
    'host' => 'mail.mambihost.com ',
    'port' => 26,
    'timeout' => 100,
    'username' => 'test@mambihost.com',
    'password' => 'secret',
    'client' => null,
    'log' => false,
    //'charset' => 'utf-8',
    //'headerCharset' => 'utf-8',
);

为什么会发生这种情况?我正在局域网内的服务器上运行它。我可以从服务器ping主机没有问题,但我的应用程序似乎没有达到它或什么。

你能帮我吗?

0 个答案:

没有答案
相关问题