You are not logged in.
Announcement
Unanswered posts
|
Pages: 1

Hello,
I trying to get my mail from company's server. I think I am not setting tPOP correctly.
I already have tSendMail in another job running ok.
I use Talend 5.0.1 on Windows.
Thanks a lot.
Starting job getMail at 16:52 16/04/2012.
[statistics] connecting to socket on port 3355
[statistics] connected
Exception in component tPOP_1
javax.mail.MessagingException: Connect failed;
nested exception is:
java.io.IOException: Unexpected response: 220 cusarusrv.cusaru.local Microsoft ESMTP MAIL Service ready at Mon, 16 Apr 2012 16:52:00 +0100
at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:210)
at javax.mail.Service.connect(Service.java:295)
at cusaru2.getmail_0_1.getMail.tPOP_1Process(getMail.java:309)
at cusaru2.getmail_0_1.getMail.runJobInTOS(getMail.java:1369)
at cusaru2.getmail_0_1.getMail.main(getMail.java:1237)
Caused by: java.io.IOException: Unexpected response: 220 cusarusrv.cusaru.local Microsoft ESMTP MAIL Service ready at Mon, 16 Apr 2012 16:52:00 +0100
at com.sun.mail.pop3.Protocol.readResponse(Protocol.java:711)
at com.sun.mail.pop3.Protocol.simpleCommand(Protocol.java:656)
at com.sun.mail.pop3.Protocol.<init>(Protocol.java:109)
at com.sun.mail.pop3.POP3Store.getPort(POP3Store.java:261)
at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:206)
... 4 more
Offline

Hi ba0344
It is your port, port 25 is normally the smpt port for the mail server.
Try port 110 or 995
Regards,
Brandon
Last edited by brandon_stubbs93 (2012-04-17 10:56:36)
Offline

Thanks shihang and brandon_stubbs93,
Finally I got it, pop3 wasn't enable.
Now, I got funny issue, when I Run Debug it takes the mails, id I Run the basic one, nothing!! Why??
Also brandon_stubbs93, you were right the port was 110.
Thanks!
Last edited by ba0344 (2012-04-17 13:30:06)
Offline

Hi ba0344
Try starting talend by running it as administrator
Regards,
Brandon
Offline

Thanks Brandon,
It worked!!
I've got two questions now:
1.- Is it possible receiving just the new ones, not all? I don't want to delete the mails from the server.
2.- How can I rename mails using Sent Date, Sender, Subject?
Thanks again!
Ba0334
Offline

Hi ba0344
1) use the Advanced setting in the tPop component for this.
2) you would probably have to use tfileinputmail and declare some variables and then use those variables in a tfilecopy to do this stage
Regards,
Brandon
Offline
Pages: 1