| Author | 
         | 
         
      
        
         
         niraj Newbie 
          
  
  Joined: 14 November 2011 Location: India
 Online Status: Offline Posts: 3
          | 
        
         
          
           | Posted: 14 November 2011 at 3:03am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Hi Team,
 
 When I was trying to configure my email with Webmail PRO, it gave me an error pop up saying "Can't connect to mail server"
 
 My email address is powered by gmail and i am quite sure about the setting that i provide in incoming and outgoing server. Same settings i have tested in your Demo application on you website, there it worked fine. 
 
 Please help me this case. FYI Open SSL is enabled on my server.
 
 here is a e.g. from Error Log 
 
 *****************************************************************************
 
 [09:19:50.92] [POST(4)] /webmail/adminpanel/index.php?ajax
 [09:19:50.92] POST > [QueryAction, hiddenDomainId, txtNewLogin, txtNewPassword]
 [09:19:50.92]
 [09:19:50.92] NET[Error] < Socket timeout reached during connection.
 [09:19:50.93] Exception[1011]: Can't connect to mail server
 ~ /libraries/afterlogic/common/managers/users/manager.php (232)
 ----------------------------------------------------------------------
 #0 D:\xampp\htdocs\webmail\adminpanel\modules\common\index.php(55): CApiUsersManager->CreateAccount(Object(CAccount), true)
 #1 D:\xampp\htdocs\webmail\adminpanel\modules\common\inc\ajax.php(41): CCommonModule->CreateAccount(Object(CAccount))
 #2 D:\xampp\htdocs\webmail\adminpanel\core\modules.php(372): CCommonAjaxAction->UsersNew_Post()
 #3 D:\xampp\htdocs\webmail\adminpanel\core\cadminpanel.php(741): ap_Module->InitAjaxAction('Post', 'users', '', '', '')
 #4 D:\xampp\htdocs\webmail\adminpanel\core\cadminpanel.php(400): CAdminPanel->initAjaxActionModules('users')
 #5 D:\xampp\htdocs\webmail\adminpanel\core\cadminpanel.php(128): CAdminPanel->initAdminPanel()
 #6 D:\xampp\htdocs\webmail\adminpanel\index.php(14): CAdminPanel->__construct('D:\xampp\htdocs...')
 #7 {main}
 [09:19:50.93] function UsersNew_Post() return $sError = Can't connect to mail server
 
 *****************************************************************************************
 
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         niraj Newbie 
          
  
  Joined: 14 November 2011 Location: India
 Online Status: Offline Posts: 3
          | 
        
         
          
           | Posted: 14 November 2011 at 3:08am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Waiting for your quick response as i need to get it approved from my management to buy paid license for this application.
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         Igor AfterLogic Support 
          
 
  Joined: 24 June 2008 Location: United States
 Online Status: Offline Posts: 6168
          | 
        
         
          
           | Posted: 14 November 2011 at 3:24am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Most probably, the connection is interruped by a firewall or other sort of protective software. You can try this test script, place it to WebMail directory, run it from browser and see if you get any errors there.
 
 --
 Regards,
 Igor, AfterLogic Support
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         niraj Newbie 
          
  
  Joined: 14 November 2011 Location: India
 Online Status: Offline Posts: 3
          | 
        
         
          
           | Posted: 14 November 2011 at 3:41am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Hi, 
 
 Thanks for your response.. I tried the same, it gave me ' connection time out'  
 
 OUTPUT : 
 ******************************************************
 connect to ssl://imap.gmail.com:993 -
 Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://imap.gmail.com:993 (Connection timed out) in /home/pc5pmq1/public_html/webprojects/popmail/ssl_connect_test.php on line 20
 Connection timed out (code: 110)
 
 ********************************************************
 kindly look into the same
 
 
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         Igor AfterLogic Support 
          
 
  Joined: 24 June 2008 Location: United States
 Online Status: Offline Posts: 6168
          | 
        
         
          
           | Posted: 14 November 2011 at 3:44am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
It confirms my initial suggestion: the issue is not connected with WebMail Pro, be sure to recheck your networking-related configuration.
 
 --
 Regards,
 Igor, AfterLogic Support
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   |