What to do when contact form messages go to spam

Just discovered some of our Jetpack contact form messages were going to spam due to WordPress converting emojis to images, and referencing externally hosted images can be a problem for some spam filters – you can leave them be by adding the below to functions.php:

/**
 * Disable emojis in emails
 */
function disable_emojis()
{
  remove_filter('wp_mail', 'wp_staticize_emoji_for_email');
}
add_action('init', 'disable_emojis');

Leave a Reply

Your email address will not be published.