Compose email in window popout

Occasional Visitor

I am currently trying to write a short email app in vanilla javascript that will display my unread emails and give me the option to reply to one using the outlook online editor in a popout window. However, I don't exactly know how to go about opening the window. Using Microsoft graph, I have all the information about a particular email message, including id and weblink. I have deduced the compose URL to be${id}?Itemid${id}&exvsurl=1

where ${id} is the id of the reply email I have created using a POST call. When I try to open this window, I get most of the functionality. My main issue is that the window itself cannot call its own .close() method after I send or delete the draft because my script is the one that invoked the opening. Is there a better method to achieve this goal or get around this? Any suggestions would be helpful!

0 Replies