Thanks for the tips, Conor. Here's what I found:
The output of sendBackInStockNotificationSubscriptionEmail() seems to be correct: it's an array like the following:
[EMAIL_TEXT_HEADER] => Order Confirmation
[EMAIL_TEXT_FROM] => from
[INTRO_STORE_NAME] => Store Name
[GREETING] => Dear
[CUSTOMER_NAME] => My Name
[INTRO1] => You have successfully subscribed to the Back In Stock Notification List for:
[PRODUCT_NAME] => Product A
[INTRO2] => We shall send you an e-mail when it is back in stock!
[URL_INTRO] => If you did not request to be subscribed to this list or have simply changed your mind and don't want to be informed when this product is back in stock, please log into your Account and unsubscribe yourself:
[URL_TEXT] => Go to My Account
[URL_VALUE] => [url]https://www.shopurl.com/index.php?main_page=account_back_in_stock_notifications[/url]
[EXTRA_INFO] =>
That same array ends up inside zen_mail(). Anytime I log the value of $ErrorInfo within the zen_mail() function, it's an empty string. When I log $email_text or $text just before line 148 of functions_email() (just before //eof: body of the email cleanup) I just get an empty string. My functions_email() is identical to the stock 1.5 file.
Also, when I look in the email_archive table in my DB, I see $EMAIL_MESSAGE_HTML in place of the body of the email. It looks like the mod is outputting correctly, zen_mail() is taking the array and not generating an error string, yet the email that is archived and arrives in my inbox is incorrect.
I will send you more details privately and hopefully we can get this sorted!
Conor, I've sent you a donation as a token of thanks for your great mods and helpful support. (I know you know that already, but I hope to encourage others to do the same--the Ceon mods and support really are top-notch! They are more than worth a few bucks!)
erin.
Current ZC version: 1.5, upgraded manually from 1.3.9h.
Mods: CEON URI mapping, Column Layout Grid, EZ Thumbnails, EZ Page Improved TOC, Giftwrap, Hide Categories, Integrated COWOA, USPS and Shipstation, CKEditor.