I am trying to configure de Ticket Creation from eMails extension, I have installed the extension package, an I have configured Standard Mail Inbox in the administrative tools, but I get the next error:
Failed to initialize the mailbox: xxxx@gmail.com. Reason: Cannot login using xxxx@gmail.com with pwd: xxxx
I don´t know what I have to do. I need your help.
Thanks in advanced.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am using pop3 with account on office 365. Can you please advice what is wrong? Is there any way to enable SSL for using port 995?
If i use this port, it just keep connecting forever... on 110 port, it says that failed to initialize the mailbox: xxx@ccc.com . Reason: Cannot login using xxx@ccc.com with pwd:...
But i am able to connect with same setting with my phone mail client.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can edit the code of the extention in order to force SSL connection and port.
I have made the change in my case to put on the interface the SSL option and the port.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
well, I've solved this problem other way. used my old exchange server account, and just configured forwarding from new account on office365 to exchange account.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Failed to initialize the mailbox: support@getdsm.com. Reason: Cannot connect to outlook.office365.com on port 995
The mailbox is empty
IMAP
Failed to initialize the mailbox: support@getdsm.com. Reason: Cannot connect to IMAP server: '{outlook.office365.com:993/imap/ssl/novalidate-cert}Inbox', with credentials: 'support@getdsm.com'/'XXXXX'
The mailbox is empty
Warning: imap_open(): Couldn't open stream {outlook.office365.com:993/imap/ssl/novalidate-cert}Inbox in /home/supportgetdsm/public_html/env-production/combodo-email-synchro/model.email-synchro.php on line 484
Array ( [0] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [1] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [2] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [3] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [4] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [5] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [6] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [7] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [8] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [9] => Can't connect to outlook-nameast.office365.com,993: Connection timed out )
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Options seems correct...
Did you try to access outlook.office365.com from your server?
Does your server have internet access? Maybe you have a restriction from a firewall?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am trying to configure de Ticket Creation from eMails extension, I have installed the extension package, an I have configured Standard Mail Inbox in the administrative tools, but I get the next error:
Failed to initialize the mailbox: xxxx@gmail.com. Reason: Cannot login using xxxx@gmail.com with pwd: xxxx
I don´t know what I have to do. I need your help.
Thanks in advanced.
What is your mail configuration? I guess the problem is related with the port used and ssl enabled or not.
Hello, I have same problem.
I am using pop3 with account on office 365. Can you please advice what is wrong? Is there any way to enable SSL for using port 995?
If i use this port, it just keep connecting forever... on 110 port, it says that failed to initialize the mailbox: xxx@ccc.com . Reason: Cannot login using xxx@ccc.com with pwd:...
But i am able to connect with same setting with my phone mail client.
You can edit the code of the extention in order to force SSL connection and port.
I have made the change in my case to put on the interface the SSL option and the port.
Thanks. But what do i need to change? do you have any edited code? so i can change it for settings i need?
well, I've solved this problem other way. used my old exchange server account, and just configured forwarding from new account on office365 to exchange account.
I will provide it on my account on sourceforge, I just need time to clean it.
Any updates?
I put the module online, i make it .
https://sourceforge.net/projects/itopmodules
Don't forget to make a backup of your installation before trying this one.
I will try to make it more clean if I had some time.
Hmm, still no luck. What could be wrong?
POP3 - with net/socket.php in the same folder
Failed to initialize the mailbox: support@getdsm.com. Reason: Cannot connect to outlook.office365.com on port 995
The mailbox is empty
IMAP
Failed to initialize the mailbox: support@getdsm.com. Reason: Cannot connect to IMAP server: '{outlook.office365.com:993/imap/ssl/novalidate-cert}Inbox', with credentials: 'support@getdsm.com'/'XXXXX'
The mailbox is empty
Warning: imap_open(): Couldn't open stream {outlook.office365.com:993/imap/ssl/novalidate-cert}Inbox in /home/supportgetdsm/public_html/env-production/combodo-email-synchro/model.email-synchro.php on line 484
Array ( [0] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [1] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [2] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [3] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [4] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [5] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [6] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [7] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [8] => Can't connect to outlook-nameast.office365.com,993: Connection timed out [9] => Can't connect to outlook-nameast.office365.com,993: Connection timed out )
Options seems correct...
Did you try to access outlook.office365.com from your server?
Does your server have internet access? Maybe you have a restriction from a firewall?
Ya, looks like there something with the server. Not sure what the issue could be.
The server has internet access and the ports should be open.
Defiantly the server, because I was able to get it to work on WAMP with the code below.
Any ideas?
For testing, I even use the code below:
// Connect to O365$imapPath = '{outlook.office365.com:993/imap/ssl}INBOX';
$username = 'EMAIL@domain.com';
$password = 'xxxxx';
// try to connect
$inbox = imap_open($imapPath,$username,$password,NULL,1) or die('Cannot connect to O365: ' . print_r(imap_errors()));
// search and get unseen emails, function will return email ids
$emails = imap_search($inbox,'UNSEEN');
$output = '';
foreach($emails as $mail) {
$headerInfo = imap_headerinfo($inbox,$mail);
$output .= $headerInfo->subject.'
';
$output .= $headerInfo->toaddress.'
';
$output .= $headerInfo->date.'
';
$output .= $headerInfo->fromaddress.'
';
$output .= $headerInfo->reply_toaddress.'
';
$emailStructure = imap_fetchstructure($inbox,$mail);
if(!isset($emailStructure->parts)) {
$output .= imap_body($inbox, $mail, FT_PEEK);
} else {
//
}
echo $output;
$output = '';
}
// colse the connection
imap_expunge($inbox);
imap_close($inbox);
?>
Last edit: David Lee 2015-06-24
I think you can try to contact the Microsoft Support...
I think it's our host. Not O365 since we're able to get it working with just the PHP file alone.
Thanks for your help thus far. I'll provide an updates as I get them. :)
Maybe you have SELinux or something equivalent enabled, blocking outgoing connections from the web server process...
Figured it out! Was on the phone with the hosting company and their firewall was blocking the port.
Thank you everyone for the feedback and help.
For future reference:
A quick test for this on connections can be done via termal like this...
login as: root
Using keyboard-interactive authentication.
Password:
Last login: Wed Jun 24 15:01:40 2015 from 10.30.6.127
root@host [~]# telnet outlook.office365.com 993
Trying 132.245.113.194...
Connected to outlook.office365.com.
Escape character is '^]'.
^]
telnet> quit
Connection closed.
root@host [~]#
Great! Finally solved :)