Quote:
Originally Posted by riju123 1.Creating a var of ZmMailMsg in the js . var msg = new ZmMailMsg();
Then tried to fetch the from field by simply msg.from and msg.subject (as par a zimlet i have seen ) and the values returned are "undefined".Why is this happening like this ? |
Your code creates a new, empty message... msg.from and msg.subject will be undefined until you set them.
To get an existing message, you'll need to do one of the following:
- set your zimlet up as a drop target, so that users can drag messages over and drop them on the zimlet
- use a search to get a set of messages to work with
- implement the onMsgView(msg, oldmsg) method in your zimlet - it'll get called when the user switches to a new message