In my legacy addon this line works
Recipients2CompFields(gMsgCompose.compFields);
I found somewhere that this line means that I can use Recipients2CompFields.
var win = Services.wm.getMostRecentWindow(“msgcompose”);
win.Recipients2CompFields(gMsgCompose.compFields);
But I still have the problem that gMsgCompose is undefined despite it being global in MsgComposeCommands.js
how can I access it so that I can expand the list of recipients?
Blessings