Mail not received

Hi,
I just use

plugins.mail.receiveMail(‘aaaaaa’, ‘bbbbbb’, true);

for receive all mail from POP3 server but no mails received.

I also read all previous posts related to mail receive but don’t get any clue.

I used username and password which I am using for my OUTLOOK.

And plugins.mail.receiveMail(‘aaaaaa’, ‘bbbbbb’, true); returns

Ljava.lang.Object;@1965791

Servoy Developer
Version 3.1.7-build 411
Java version 1.6.0-b105 (Windows XP)

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
}

Hi Patrick,

var vMessages = plugins.mail.receiveMail(‘aaaaaa’, ‘bbbbbb’, true);

Actually vMessages is null.

Because I used sample code of receiveMail plugins where lots of application.output but no out put at all in my case.

I don’t know why :shock:

May be due to username and password but I use the same username and password which I am using for my outlook.

Maybe due to authentification? Maybe your mail server requires that. You should see an error in the console or the servoy_log.txt file…

I work with the mail plugin a lot.

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.

Check your http://localhost:8080/servoy-admin/plugin-settings. The mail setting in Servoy Developer doesn’t have all the settings.

Let us know what the error is and we most likely can help.

Steve

Hi Steve ,
Thanks for your hard work.
Currently I have no problem with receiving mails. :lol:
Now I am working with all mailing functionality and I am sure more issues will come in future. :arrow: