CakePHP成功将电子邮件发送到某些地址

时间:2014-03-03 20:14:51

标签: php email cakephp

我正在使用CakeDC来创建CakePHP应用程序的Auth部分。 我正确设置了电子邮件。问题是它只能正确发送到Gmail。因此,当我尝试注册@ outlook.com电子邮件地址时 - 电子邮件根本无法通过。这是CakePHP配置中的EmailConfig类:

class EmailConfig {

    public $default = array(
        'transport' => 'Mail',
        'from' => 'cyborg@example.io',
        //'charset' => 'utf-8',
        //'headerCharset' => 'utf-8',
    );

    public $smtp = array(
        'transport' => 'Smtp',
        'from' => array('cyborg@example.io' => 'My Site'),
        'host' => 'example.io',
        'port' => 25,
        'timeout' => 30,
        'username' => 'correctusername',
        'password' => 'correctpassword',
        'client' => null,
        'log' => false,
        //'charset' => 'utf-8',
        //'headerCharset' => 'utf-8',
    );

    public $fast = array(
        'from' => 'you@localhost',
        'sender' => null,
        'to' => null,
        'cc' => null,
        'bcc' => null,
        'replyTo' => null,
        'readReceipt' => null,
        'returnPath' => null,
        'messageId' => true,
        'subject' => null,
        'message' => null,
        'headers' => null,
        'viewRender' => null,
        'template' => false,
        'layout' => false,
        'viewVars' => null,
        'attachments' => null,
        'emailFormat' => null,
        'transport' => 'Smtp',
        'host' => 'localhost',
        'port' => 25,
        'timeout' => 30,
        'username' => 'user',
        'password' => 'secret',
        'client' => null,
        'log' => true,
        //'charset' => 'utf-8',
        //'headerCharset' => 'utf-8',
    );

}

检查垃圾和其他文件夹 - 它不存在。

0 个答案:

没有答案