• Resolved deindorfleben

    (@deindorfleben)


    Hello,

    Thank you for your great and simple plugin. Unfortunately we can not see any mail sent by WooCommerce in the mail logging list.

    For example the customer “Customer processing order email” is not listed when send to the customers. Other e-mails like “new customer” oder are listed in logging.

    Could you please advice how to analyze this or do you have a solution approach?

    Thank you
    Christian

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author JWardee

    (@wardee)

    Hey Christian,

    I can confirm my end that emails sent by WooCommerce are captured. The plugin uses the wp_mail hook so if you have any other plugins installed that interferes with this then that can also cause some issues, but if you’re receiving some emails then this is likely not an issue.

    Do the WooCommerce emails actually arrive in your inbox, if sending has been disabled then the emails will not be recorded.

    Kind regards

    Thread Starter deindorfleben

    (@deindorfleben)

    Hey Wardee,

    Thank you for your reply.

    Yes we are receiving some mails but the most important on “Customer processing order email” not which causes a lot of trouble analysing if mails are sent or not.

    Could you please have a look onto the e-mail template? Do you see anything that prevents from logging in your plugin?

    Thank you
    Christian

    ********************************
    <?php
    /**
    * Customer processing order email
    *
    * This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-processing-order.php.
    *
    * HOWEVER, on occasion WooCommerce will need to update template files and you
    * (the theme developer) will need to copy the new files to your theme to
    * maintain compatibility. We try to do this as little as possible, but it does
    * happen. When this occurs the version of the template file will be bumped and
    * the readme will list any important changes.
    *
    * @see https://docs.woocommerce.com/document/template-structure/
    * @package WooCommerce/Templates/Emails
    * @version 3.7.0
    */

    if ( ! defined( ‘ABSPATH’ ) ) {
    exit;
    }

    /*
    * @hooked WC_Emails::email_header() Output the email header
    */
    do_action( ‘woocommerce_email_header’, $email_heading, $email ); ?>

    <?php /* translators: %s: Customer first name */ ?>
    <p><?php printf( esc_html__( ‘Hi %s,’, ‘woocommerce’ ), esc_html( $order->get_billing_first_name() ) ); ?></p>
    <?php /* translators: %s: Order number */ ?>
    <p><?php printf( esc_html__( ‘Just to let you know — we\’ve received your order #%s, and it is now being processed:’, ‘woocommerce’ ), esc_html( $order->get_order_number() ) ); ?></p>

    <?php

    /*
    * @hooked WC_Emails::order_details() Shows the order details table.
    * @hooked WC_Structured_Data::generate_order_data() Generates structured data.
    * @hooked WC_Structured_Data::output_structured_data() Outputs structured data.
    * @since 2.5.0
    */
    do_action( ‘woocommerce_email_order_details’, $order, $sent_to_admin, $plain_text, $email );

    /*
    * @hooked WC_Emails::order_meta() Shows order meta data.
    */
    do_action( ‘woocommerce_email_order_meta’, $order, $sent_to_admin, $plain_text, $email );

    /*
    * @hooked WC_Emails::customer_details() Shows customer details
    * @hooked WC_Emails::email_address() Shows email address
    */
    do_action( ‘woocommerce_email_customer_details’, $order, $sent_to_admin, $plain_text, $email );

    /**
    * Show user-defined additional content – this is set in each email’s settings.
    */
    if ( $additional_content ) {
    echo wp_kses_post( wpautop( wptexturize( $additional_content ) ) );
    }

    /*
    * @hooked WC_Emails::email_footer() Output the email footer
    */
    do_action( ‘woocommerce_email_footer’, $email );
    ********************************

    Plugin Author JWardee

    (@wardee)

    The template looks fine to me, but the issue won’t be there. If you aren’t receiving the email in your inbox then it’s likely not being sent at all. Regardless if you have wp-mail-catcher installed or not.

    You’ll need to find out why the email isn’t even attempting to be sent. Even if the mail is sent unsuccessfully wp-mail-catcher will record the attempt.

    I can’t provide support because it isn’t an issue with wp-mail-catcher so I’m going to close the issue ??

    Thread Starter deindorfleben

    (@deindorfleben)

    Hi Wardee,

    Thank you for your reply. Sorry for the misunderstanding, I will describe more in detail.

    The customer processing order email is sent from our platform successfully. Everything looks quite fine with email sending, hundreds of mails were already sent.

    But our situation is as follows: Out of 100 mails being sent successfully there is one mail that customer says he has not received. Therefore we installed wp-Mail-catcher to see whether we have an issue or the issue is at customer himself with email spam filter.

    Now we use wp-Mail-catcher to analyse this but NO email from these 100 successfully sent emails ?customer processing order email“ is logged in your plugin! Not even one!

    So therefore we think that it might be a plug-in problem or email template.

    Our hope is that you can help analyzing and give us a hint to resolve because it’s very important for us.

    Thank you and regards
    Christian

    Plugin Author JWardee

    (@wardee)

    Hi Christian,

    No worries, and thank you for clarifying!

    So I don’t think it’s an issue with your customer’s spam filter or anything like that. I think that the email was never sent in the first place. There’s likely some code somewhere that unhooks or stops the ‘customer processing order email’ from being sent in the first place, as a result wp-mail-catcher has nothing to record.

    What I’d recommend doing is:
    -Disable all plugins (excluding WooCommerce)
    -Set your site to use the default twentytwenty WordPress theme
    -See if the emails are being sent, if you’re using your local machine for testing you can use something like https://mailtrap.io to mimic the emails being sent
    -Enable the plugins one at a time, placing a test order and confirming the email is sent each time
    -Switch your theme back to your original one and again place a test order and confirm the email is being sent

    This way you’ll be able to pinpoint roughly where to dig deeper. Failing this grab a developer to look through for you.

    As mentioned this isn’t an issue with the plugin, but if you do find an issue directly related to the plugin then please report it using out bug tracker on Github https://github.com/JWardee/wp-mail-catcher/issues

    I’m afraid I can’t help you beyond this advice, but I hope this helps! ??

    Thread Starter deindorfleben

    (@deindorfleben)

    Hi Wardee,

    Thank you very much for your urgent help.

    This does help and I`m going to dig deeper into installed plugins.

    Regards, Christian

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Missing mails in mail logging list’ is closed to new replies.