Let’s say you have already styled your WooCommerce email and want to use the same email design for a custom email, how will you go about that? Turns out it is pretty easy. For the sake of simplicity, I am assuming you have the needed data in variables, change them accordingly as per your code.
For instance, right now, your email function looks something like this:
Now, do the following and it will pull the email design in use with WooCommerce emails even if you haven’t styled it.
The magic happens by calling in the header and footer markup of WooCommerce emails along with the actual content, buffer the output it and pass that on to mail function.