0

如何在现有帐户中添加多个来源..例如,我创建帐户 test@gmail.com 但我在此帐户中添加了源 test@hotmail.com?,我如何尝试这个...现在当我收到用于帐户测试的邮件时@gmail.com 和 source test@hotmail.com .. 也就是说要获取两个 this@gmail.com 和 test@hotmail.com 的电子邮件

我尝试使用此代码:

        public function contextAction()
        {
            $contextio = new ContextIO('key', 'secret');
            $s = $contextio->addEmailAccount($this->getUser()->getidContext(),array('server' => 'imap.googlemail.com','username' =>'test@hotmail.com'));
            if($s === false) print_r($contextio->getLastResponse());
            print_r($s->getData());

        }

但我有这个输出:

ContextIOResponse Object
    (
        [headers:protected] => Array
            (
                [request] => 
                [response] => 
            )

        [rawResponseHeaders:protected] => 
        [rawRequestHeaders:protected] => 
        [rawResponse:protected] => {"success":false,"feedback_code":"An email account for this user already exists"}
        [decodedResponse:protected] => Array
            (
                [success] => 
                [feedback_code] => An email account for this user already exists
            )

        [httpCode:protected] => 500
        [contentType:protected] => application/json
        [hasError:protected] => 1
    )
4

0 回答 0