facebook community', 'affilicious'); ?>

send_email()): ?>
" . __('Email', 'affilicious') . ": " . $email . "

" . "

" . __('Slug', 'affilicious') . ": " . $name . "

" . "

" . __('Subject', 'affilicious') . ": " . $subject . "

" . "

" . $message . "

" . $headers = __('Feedback:', 'affilicious') . ' ' . $name . ' <' . $email . '>'; add_filter('wp_mail_content_type', array($this, 'set_email_content_type')); if (wp_mail($to, __('Feedback:', 'affilicious') . ' ' . $subject, $msg, $headers)) { echo '
'; echo '

' . __('Thanks, your feedback has been sent! We will read every single feedback.', 'affilicious') . '

'; echo "
"; } else { echo '
'; echo '

' . __('Failed to send the email. Please try it again', 'affilicious') . '

'; echo '
'; return false; } unset($_POST['email'], $_POST['name'], $_POST['subject'], $_POST['message']); remove_filter('wp_mail_content_type', array($this, 'set_email_content_type')); return true; } else { echo '
'; echo '

' . __("Empty fields aren't allowed. Please fill out all fields.", 'affilicious') . '

'; echo '
'; return false; } } return false; } /** * Set the html content type for the email * * @since 0.3.3 * @return string */ function set_email_content_type() { return 'text/html'; } }