receiveMail returns a MailMessage array. MailMessage is an object that you can “discover” when you open the mail node in the plugin section. So if the plugin returns something, it will return an array that looks like java.lang.Object. Try this to see if you have a message
var vMessages = plugins.mail.receiveMail('aaaaaa', 'bbbbbb', true);
for (var i = 0; i < vMessages.length; i++) {
var vMessage = vMessages[i]; // put a break point here and see what you have; should be a MailMessage object
}
if vMessages is null and you have messages it means it failed. Next step is to look at your logs. There should be an error that will tell you whats up. It’s most likely some kind of error in the way your trying to connect.
Hi Steve ,
Thanks for your hard work.
Currently I have no problem with receiving mails.
Now I am working with all mailing functionality and I am sure more issues will come in future.