• Resolved j893

    (@j893)


    I have Postman installed, but all the plugins I have don’t appear to be sending using Postman. They still send using the default PHP mail from what I can tell.

    I can send a Postman test message just fine using OAuth and gmail. But everything else just seems to ignore Postman. I’m on Postman 1.5.10.

    My hosting is WPEngine.

    https://www.ads-software.com/plugins/postman-smtp/

Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter j893

    (@j893)

    So WordPress itself sends using Postman, but not Contact Form 7 or my built-in Theme’s contact form… why??

    Thread Starter j893

    (@j893)

    Got it! It was my WordPress theme “Highend” from HB-themes. It integrates with Contact Form 7 and messes up email sending from Postman.

    Thread Starter j893

    (@j893)

    Thanks for your awesome help, and the suggestion to check sending with the default 2015 theme instead!!

    Plugin Author Jason Hendriks

    (@jasonhendriks)

    I’ll have to remember that for future issues that leave me scratching my head. I never imagined a front-end theme could mess up a back-end sub-system.

    https://hb-themes.com/home/themes/highend/
    https://contactform7.com

    Thread Starter j893

    (@j893)

    Plugin Author Jason Hendriks

    (@jasonhendriks)

    That’s great support!

    Thread Starter j893

    (@j893)

    One additional note:

    If anyone else uses the theme Highend from HB-Themes.com and needs to fix this right away. It is very simple to do:

    The problem is with the file functions.php on line 1313. In that line the email function uses

    mail($to, $subject, $message, $headers);

    Simply change this to (adding the wp_):

    wp_mail($to, $subject, $message, $headers);

    This will alow Postman to work as it hooks into the wp_mail() function. Note: the php mail() function is blocked in WPEngine and many other hosts.

    And better yet, put an override in your child theme for this.

    To find this function (in case the line number changes later), look for this function (my change to this function is already present below):

    /* AJAX MAIL
    ================================================== */
    add_action(‘wp_ajax_mail_action’, ‘sending_mail’);
    add_action(‘wp_ajax_nopriv_mail_action’, ‘sending_mail’);
    function sending_mail() {
    $site = get_site_url();
    $subject = __(‘New Message!’, ‘hbthemes’);
    $email = $_POST[‘contact_email’];
    $email_s = filter_var($email, FILTER_SANITIZE_EMAIL);
    $comments = stripslashes($_POST[‘contact_comments’]);
    $name = stripslashes($_POST[‘contact_name’]);
    $to = hb_options(‘hb_contact_settings_email’);
    $message = “Name: $name \n\nEmail: $email \n\nMessage: $comments \n\nThis email was sent from $site”;
    $headers = ‘From: ‘ . $name . ‘ <‘ . $email_s . ‘>’ . “\r\n” . ‘Reply-To: ‘ . $email_s;
    wp_mail($to, $subject, $message, $headers);
    exit();
    }

    Note: In my case, because I expect them to fix this soon, I’m just modifying the original functions.php, even though I know it will be overritten when the theme is updated, because I don’t want to put work-arounds in my child theme for silly things like this unless I must. ??

    Hey guys,

    I just wanted to mention that the issue with our Highend theme has been fixed in Highend 2.4 version.

    Best Regards,
    Branko, HB-Themes

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Contact form 7 and other plugins not going through Postman’ is closed to new replies.