'+doubleOptinMessage+'
 ' );
                        $ymce.ajax({
                                                type:   'POST',
                                                url:    'https://confectionalism.com/wp-admin/admin-ajax.php',
                                                data: {
                                                        action: 'yks_mailchimp_form_submit',
                                                        form_action: 'send_update_email',
                                                        user_email: user_email,
                                                        list_id : list_id_final
                                                },
                                                dataType: 'html',
                                                success: function(response) {   
                                                                jQuery( '.preloader-confirmation-box' ).html( response );
                                                                console.log('success' + response);
                                                        },
                                                error: function(errorResponse) {
                                                                jQuery( '.preloader-confirmation-box' ).html( errorResponse );
                                                                console.log(errorResponse);
                                                        }
                                        });
                        return false;
                });
                
            });
            function extractEmails(text) {
                return text.match(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi);
            }
' );
                        $ymce.ajax({
                                                type:   'POST',
                                                url:    'https://confectionalism.com/wp-admin/admin-ajax.php',
                                                data: {
                                                        action: 'yks_mailchimp_form_submit',
                                                        form_action: 'send_update_email',
                                                        user_email: user_email,
                                                        list_id : list_id_final
                                                },
                                                dataType: 'html',
                                                success: function(response) {   
                                                                jQuery( '.preloader-confirmation-box' ).html( response );
                                                                console.log('success' + response);
                                                        },
                                                error: function(errorResponse) {
                                                                jQuery( '.preloader-confirmation-box' ).html( errorResponse );
                                                                console.log(errorResponse);
                                                        }
                                        });
                        return false;
                });
                
            });
            function extractEmails(text) {
                return text.match(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi);
            }
                
            
            
 
     
    