• My Automatic Emails are sent when an order is completed, but they are sent without the Subject and the Heading, so some spam filters catch them.

    I’m using WPML (WordPress Multi Language) and the plugin WooCommerce Multilingual.

    Interestingly enough, when I manually send the mails on WooCommerce > Orders > #Order > Order Action > Completed Order > submit, the mails are sent correctly (with Subject and Heading, all properly translated).

    Do you know guys what the problem could be?
    Tones of thanks for any input,

    https://www.ads-software.com/plugins/woocommerce/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Jan444

    (@ign2009)

    I have tried to add this, to no avail (taken from here)

    add_filter('woocommerce_email_subject_customer_completed_order', 'change_admin_email_subject', 1, 2);
    
    function change_admin_email_subject( $subject, $order ) {
    	global $woocommerce;
    
    	$blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
    
    	$subject = sprintf( 'Testing', $blogname, $order->id, $order->billing_first_name, $order->billing_last_name );
    
    	return $subject;
    }
    Plugin Contributor Mike Jolley

    (@mikejolley)

    Hate to say it, but did you test without WPML? I know they translate these options so might be translating for an empty string.

    Ced

    (@cedriccharles)

    Hello,

    I have the exact same problem. Did you found a solution ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Automatic Emails are sent without Subject and Heading’ is closed to new replies.