I've been working on an outlook add-in thats supposed to do some things with attachments when a mail is send, I've tried to use events for this but came to the conclusion that it may just be impossible in combination for what i need(If you have a solution for this that would be appreciated). I have now decided to instead use a button requiring the user to manually activate the add-in which should then modify attachments/read them and for example return to me what attachments are attached. I'm trying to just get something simple to work for something that when i press the button, the body is modified by a string hardcoded in the code. But even something as simple as that simply refuses to work. Any help or direction on what I can try/do would be appreciated.
Some context about my add-in
It's generated with yeomen generator. I'm running it in outlook classic(In any other version of outlook the entire add-in functionality doesn't work for me). Its an add-in only manifest.xml with taskpane(I have currently stripped the taskpane away from the project because i have no use for it). Its javascript