Okay
  Print

How to Turn off Confirmation Email for Email Collector

Please follow these steps to disable email verification and edit notification message:

1. Delete lines 325-338 in alliance/fw/tools/emailer/emaler.php file:

$subj = sprintf(__('Site %s - Subscribe confirmation', 'themerex'), get_bloginfo('site_name'));
                $url = admin_url('admin-ajax.php');
                $link = $url . (themerex_strpos($url, '?')===false ? '?' : '') . 'action=emailer_confirm&nonce='.urlencode($subscribers[$group][$email]).'&email='.urlencode($email).'&group='.urlencode($group);
                $msg = sprintf(__("You or someone else added this e-mail address into our subcribtion list.\nPlease, confirm your wish to receive newsletters from our website by clicking on the link below:\n\n<a href=\"%s\">%s</a>\n\nIf you do not wiish to subscribe to our newsletters, simply ignore this message.", 'themerex'), $link, $link);
                add_filter( 'wp_mail_content_type', 'themerex_set_html_content_type' );
                $sender_name = get_bloginfo('name');
                $sender_email = themerex_get_theme_option('contact_email');
                if (empty($sender_email)) $sender_email = get_bloginfo('admin_email');
                $headers = 'From: ' . trim($sender_name).' <' . trim($sender_email) . '>' . "\r\n";
                $mail = themerex_get_theme_option('mail_function');
                if (!@$mail($email, $subj, nl2br($msg), $headers)) {
                    $response['error'] = __('Error send message!', 'themerex');
                }
                remove_filter( 'wp_mail_content_type', 'themerex_set_html_content_type' );

2. Replace line 323 in the same file with the following code:

$subscribers[$group][$email] = '';

3. The notification message can be edited in fw/core/core.messages.php file, line 113.