-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warn user if IMAP SSL support is not present #196
Comments
Never mind. I see that imap-ssl is not installed on MAMP. |
From what I think it might be caused by IMAP extension not build with SSL support. Because if extension was not installed it will have given fatal error. Now the best thing I found to check if it is support SSL so far is using Opinions? |
Something like this should work: ob_start();
$imap_info = new ReflectionExtension('imap');
$imap_info->info();
$imap_info = strip_tags( ob_get_clean() );
$ssl_enabled = false !== strpos( $imap_info, 'SSL Support enabled' ); |
oh wait..I think But I can't reproduce it. |
I am testing this plugin on a localhost install. I am trying to setup an email account using gmail but I keep getting the follow error: "Unknown error while connecting to the IMAP server. Please check your IMAP settings and try again."
This is what I retrieved from the local server error logs:
[14-Aug-2014 02:22:47 UTC] PHP Warning: imap_open(): Couldn't open stream {imap.gmail.com:993/ssl} in /Applications/MAMP/htdocs/wordpress/wp-content/plugins/supportflow/classes/class-supportflow-email-accounts.php on line 334
Can someone help me troubleshoot this? Thanks.
The text was updated successfully, but these errors were encountered: