| Reply | « Previous Thread | Next Thread » |
|
any body know how to conect to mail server using pop3 in python??
like a mail client app... ![]() ![]() |
|
Join Date: Nov 2007
Posts: 318
Location: Sertaozinho/Brazil
marcelobarrosalmeida
Offline
Forum Nokia Champion
|
|
Running from PC it is common to use poplib module. However, this module is not available for S60. I took a look at this module and I saw few dependencies:
Code:
re, socket, hashlib, sys Marcelo Barros Nokia E71, N800, N95 and XM 5800 http://www.croozeus.com http://wordmobi.wordpress.com http://jedizone.wordpress.com |
|
Quote:
thanks for the respond marcelobarrosalmeida, but truely i'm a new bie in this.. i'm still confuse, what should i do... would u mind to tell me more detail?? thank you for your humble heart... ![]() ![]() (sory about my bad english) ![]() ![]() |
|
Join Date: Nov 2007
Posts: 318
Location: Sertaozinho/Brazil
marcelobarrosalmeida
Offline
Forum Nokia Champion
|
|
Hi
Unfortunately, there is no easy way. You need to understand how pop3 works in order to receive messages and you need to understand how smtp works, for sending messages. And it is necessary to study poplib, of course. I copied poplib from python 2.2.3 for you. Unzip and put this file inside "e:\python\lib" (memory card). Create this path, if it does not exist in your memory card. Open python 1.4.5 and try the following code, just to get start: Code:
import poplib
# put your pop3 mail server here
macc = poplib.POP3('mail.mail_server_here.com.br')
# put your username here
macc.user('username')
# put your password here
macc.pass_('password')
# macc.list return the email list
if macc.list():
print "you have %d messages" % len(macc.list())
else:
print "mailbox empty"
Marcelo Barros Marcelo Barros Nokia E71, N800, N95 and XM 5800 http://www.croozeus.com http://wordmobi.wordpress.com http://jedizone.wordpress.com |
|
Quote:
thanks a lot marcelobarrosalmeida. you've help me a lot... ![]() i understand it better now... yes you are right, "there is no easy way". i will searcing or googling some tutorials, articles, or anything else related with pop3, smtp, and mail client.. btw, do you have some articles or anything about it?? i interested in study about it. and of course i love to study harder about something that i want to know... ![]() thanks for helping me marcelobarrosalmeida... ![]() ![]() |
|
Join Date: Nov 2007
Posts: 318
Location: Sertaozinho/Brazil
marcelobarrosalmeida
Offline
Forum Nokia Champion
|
|
Hi
Any good computer network book talks about pop and smtp. But you can start using some mediawiki articles and google. They are relatively simple protocols and can be used even over a regular telnet connection. Afterwards it will be simple to use the corresponding python modules. See you Marcelo Barros Marcelo Barros Nokia E71, N800, N95 and XM 5800 http://www.croozeus.com http://wordmobi.wordpress.com http://jedizone.wordpress.com |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Please help installing Python libraries on S60 | ericroijen | Python | 11 | 2009-07-18 11:43 |
| Python for S60 1.9.2 released | tvijayan | Python | 26 | 2009-03-11 10:28 |
| Python for S60 1.9.1 released | tvijayan | Python | 30 | 2009-02-26 07:16 |
| Python for S60 1.9.0 released | tvijayan | Python | 48 | 2009-01-27 16:39 |
| [announce] Mobile Python book soon in Sept 2007 ! | cyke64 | Python | 11 | 2007-10-03 20:46 |