Just for anyone having the issue ( i think its very similar to bartoli) except I have SMTP configure plugin and Contact Form 7 together and there was a js clash. I removed the gmail bit in configure-smtp.php as im using Rackspace with send mail for my mail relay:
/**
* Outputs JavaScript
*
* @return void (Text is echoed.)
*/
public function add_js() {
$alert = __( ‘Be sure to specify your full GMail email address (including the “@gmail.com”) as the SMTP username, and your GMail password as the SMTP password.’, $this->textdomain );
$checked = $this->gmail_config[‘smtp_auth’] ? ‘1’ : ”;
echo <<<JS
<script type=”text/javascript”>
function configure_gmail() {
// The .attr(‘checked’) == true is only for pre-WP3.2
if (jQuery(‘#use_gmail’).attr(‘checked’) == ‘checked’ || jQuery(‘#use_gmail’).attr(‘checked’) == true) {
jQuery(‘#host’).val(‘{$this->gmail_config[‘host’]}’);
jQuery(‘#port’).val(‘{$this->gmail_config[‘port’]}’);
if (jQuery(‘#use_gmail’).attr(‘checked’) == ‘checked’)
jQuery(‘#smtp_auth’).prop(‘checked’, $checked);
else // pre WP-3.2 only
jQuery(‘#smtp_auth’).attr(‘checked’, {$this->gmail_config[‘smtp_auth’]});
jQuery(‘#smtp_secure’).val(‘{$this->gmail_config[‘smtp_secure’]}’);
if (!jQuery(‘#smtp_user’).val().match(/[email protected]$/) ) {
jQuery(‘#smtp_user’).val(‘[email protected]’).focus().get(0).setSelectionRange(0,8);
}
alert(‘{$alert}’);
return true;
}
}
</script>
JS;
}
/**
* If the ‘Use GMail’ option is checked, the GMail settings will override whatever the user may have provided
*
* @param array $options The options array prior to saving
* @return array The options array with GMail settings taking precedence, if relevant
*/
public function maybe_gmail_override( $options ) {
// If GMail is to be used, those settings take precendence
if ( $options[‘use_gmail’] )
$options = wp_parse_args( $this->gmail_config, $options );
return $options;
}
This was causing the clash with the AJAX code, causing the infinite spinning arrows.