https://www.wpmailinggroup.com/wp-includes/js/jquery/ui/core.min.js

We have started hooks and filters to the plugin, the first filter we added is,

1- mg_change_imap_flag

This can be used to modify connection string of mail inbox. Use it to add additional parameters required by gmail or any other service provider. You can connect to gmail inbox by pasting this snippet in your functions.php of active theme.

function gmail_imap_connection_string_wpmg($strConnect){

$strConnect = '{imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX';

return $strConnect;

}

add_filter("mg_change_imap_flag","gmail_imap_connection_string_wpmg");

 

=====================================================================

 

For Hostmonster we were able to connect to imap using this code below.


function hostmonster_imap_connection_string_wpmg($strConnect){

$strConnect = ‘{host312.hostmonster.com/imap/ssl/novalidate-cert}INBOX’;

return $strConnect;

}

add_filter(“mg_change_imap_flag”,”hostmonster_imap_connection_string_wpmg”);

2- wpmg_subscription_on_submit_before
This is action hook and executes right after subscription form is submitted.

3- wpmg_subscription_on_submit_after_success_message
This is an action hook which occurs when subscription is successfully submitted.