This function doesn't really need the whole `emailInfo` object. Since we're already doing `if (emailInfo.html) {...` outside of this function, maybe we can just take in the HTML and return the HTML with inline styles.