• Resolved fotokart

    (@fotokart)


    Hi,

    Although we have not made any changes in Woocommerce Email settings, our “new order” mails have just started to drop only in our primary mail. (the secondary mail, seperated with coma, did not receive any mail. Also the secondary mail seems not included in the recipient line of order mail as before. There is no problem at admin > woo email settings, our mails seem as they were.) How could that be?

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    There is no problem at admin > woo email settings, our mails seem as they were.) How could that be?

    Can you try resaving the settings. If the mail header does not have the second mail something else is probably interfering.

    You can also try this: https://www.ads-software.com/plugins/wp-mail-logging/ – it makes all mails accessible from your WordPress backend. This makes checking mails easier.

    **Before you do that, please do make a full backup!**

    Kind regards,

    Thread Starter fotokart

    (@fotokart)

    Hi @conschneider

    We have monitored the new order mail through WP Mail logging extension as you mentioned. We noticed that both mails are in line and showing as following in the log: [email protected],\n [email protected]

    Still the secondary mail was not included at inbox so “/n” is the issue? So should we use “;” instead of “,” in settings? No change has been made here before.

    Regards.

    • This reply was modified 4 years, 6 months ago by fotokart.
    Plugin Support con

    (@conschneider)

    Engineer

    Hi again,

    We have monitored the new order mail through WP Mail logging extension as you mentioned. We noticed that both mails are in line and showing as following in the log: [email protected],\n [email protected]

    It seems that the input escape is over eager. \n usually stands for newline. Can you try and remove the space between the two mail addresses.

    Change [email protected], [email protected] to [email protected],[email protected]

    Kind regards,

    Moderator Hari Shanker R

    (@harishanker)

    Hi @fotokart

    Just checking-in to see if you were able to try out the suggestions that we had provided in the previous reply. Could you edit your email to: [email protected],[email protected] from: [email protected], [email protected] by removing that extra space?

    In case that doesn’t work, can you try out the following Code Snippet in your site? ??

    
    add_filter( 'woocommerce_email_recipient_new_order', 'your_email_recipient_filter_function', 10, 2);
    
    function your_email_recipient_filter_function($recipient, $object) {
        $recipient = $recipient . ', [email protected]'; //Replace this with your additional email id.
        return $recipient;
    }
    

    You can add this to your site at the bottom of your theme’s functions.php file. I’d recommend using a Code Snippets Plugin for the same though.

    In case the other suggestion didn’t work, this should help you send the additional email for your new order emails.

    I hope that helps!

    Plugin Support EtienneP a11n

    (@etiennep)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Secondary mail adress not included in woocommerce mail’ is closed to new replies.