|
|||
|
I tried to receive pop3 e-mails, and when I add "pop.onRecv", an application stops working (and there is also a debug error).
I tried like this using sample: pop=new RecvMail(); pop.server="popserver.com"; pop.username="username"; pop.password="password"; var old_p = 0, p, size; pop.onRecv = function on_recv(type, msg) { if (type == 0) trace(msg); else if (type == 3) { p = parseInt(msg) * 100 / size; if (p - old_p > 10) { trace("recieved: " + p + "%"); old_p = p; } } if (!processMsg()) return false; return true; } trace(pop.connect()); size = parseInt(pop.list(1)); trace(size); m = pop.retr(1); pop.quit(); pop.close(); m.save("c:\\emails\\aaa.eml"); Any suggestion or solution? Thanks |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|