PDA

View Full Version : QPop3 and QSocket (example from wysota)



raphaelf
19th January 2006, 13:23
Hello everybody,

QT = 3.4
OS: Windows XP
Compiler: MINGW

i am looking for to understand the example from wysota. After compiling and running the program, it happens nothing..
the program should connect with a Server by login name and password.
And i should get a list of my emails via qDebug.
Can somebody say me why after running the program happens nothing?
I get no erros or qDebug messages..


Best Regards

yop
19th January 2006, 14:25
the program should connect with a Server by login name and password.
And i should get a list of my emails via qDebug.
Can somebody say me why after running the program happens nothing?

Though wysota knows better, have you seen any network activity by your side? You can use ethereal (http://www.ethereal.com/) to check out what is sent to the server and what the server replies and give us some feedback. If wysota reads this, I'm intrested in sending mails also (right now I'm using a quick & dirty solution (system call with mail)). Any pointers on that?

jacek
19th January 2006, 15:37
I'm intrested in sending mails also (right now I'm using a quick & dirty solution (system call with mail)). Any pointers on that?
Maybe this (http://www.qtcentre.org/forum/showthread.php?t=183)?

yop
19th January 2006, 15:54
Maybe this (http://www.qtcentre.org/forum/showthread.php?t=183)?
I'll check it out thanks

wysota
20th January 2006, 12:05
Can somebody say me why after running the program happens nothing?
I get no erros or qDebug messages..

Hello,

looks to me that you are trying to connect to a wrong server. You are connecting to "www.hotmail.com:110", but:


$ dig -t mx hotmail.com

;; QUESTION SECTION:
;hotmail.com. IN MX

;; ANSWER SECTION:
hotmail.com. 3600 IN MX 5 mx1.hotmail.com.
hotmail.com. 3600 IN MX 5 mx2.hotmail.com.
hotmail.com. 3600 IN MX 5 mx3.hotmail.com.
hotmail.com. 3600 IN MX 5 mx4.hotmail.com.


which means hotmail.com domain mail is served by mx{1,2,3,4}.hotmail.com, so you should connect to one of them. www.hotmail.com:110 just drops connections, check it out yourself by connecting with a telnet to it (telnet www.hotmail.com 110).

sunil.thaha
20th January 2006, 13:35
i am looking for to understand the example from wysota. After compiling and running the program, it happens nothing..


Where was the example given ?

dec0ding
20th January 2006, 16:22
Where was the example given ?

If u mean of the example of wysota, then it is in the thread attachment:
http://www.qtcentre.org/forum/attachment.php?attachmentid=50&d=1137673383

:o