Closed (fixed)
Project:
SMTP Authentication Support
Version:
5.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Feb 2008 at 15:00 UTC
Updated:
31 Aug 2010 at 12:01 UTC
Running Drupal 5.7 on Win32
I had openssl disabled in my php.ini file and couldn't get the Gmail smtp settings to work.
When looking at the source code, I discovered a handy help message that was never shown.
Here are my proposed changes to enable the display of this message:
if (function_exists('openssl_open')){ //Only display the option if openssl is installed.
$form['server']['smtp_protocol'] = array(
'#type' => 'select',
'#title' => t('Use encrypted protocol'),
'#default_value' => variable_get('smtp_protocol', 'standard'),
'#options' => array('standard' => t('No'), 'ssl' => t('Use SSL'), 'tls' => t('Use TLS')),
'#description' => t('This allows connection to an SMTP server that requires SSL encryption such as gmail.'));
}
else{ //If openssl is not installed use normal protocol.
variable_set('smtp_protocol', 'standard');
$form['server']['smtp_protocol'] = array(
'#type' => 'select',
'#title' => t('Use encrypted protocol'),
'#default_value' => variable_get('smtp_protocol', 'standard'),
'#options' => array('standard' => t('No')),
'#description' => t('Your PHP installation does not have SSL enabled. See the !url page on php.net for more information. Gmail requires SSL.', array('!url' => l(t('OpenSSL Functions'), 'http://php.net/openssl'))),
);
}
Comments
Comment #1
preventingchaos commentedor maybe something like this?
Comment #2
open-keywords commentedYes !
This is fine also
just a capital G for gmail in the first description, and it would be perfect !
Comment #3
oadaeh commentedIt's not a patch. See here for info: http://drupal.org/patch/create
Comment #4
oadaeh commentedThis is fixed here: http://drupal.org/cvs?commit=106675
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #6
suhas448 commentedJust enable the php_openssl (Wamp server) in php extensions you will get SSL TSL option