Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4android > Additional libraries, classes and official updates
Documentation Wiki Register Members List Windows Mobile Search Today's Posts Mark Forums Read

Additional libraries, classes and official updates Users contributed libraries, classes and official updates. This forum is open for licensed users only.

New Net library - Android FTP, SMTP and POP3

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-17-2011, 02:46 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 25,913
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default New Net library - Android FTP, SMTP and POP3

The new Net library supports FTP, SMTP and POP3 protocols. This library replaces the FTP library. Both regular connections and SSL connections are supported.
SMTP - Allows you to directly connect to SMTP mail servers and send mails, including Html messages and attachments (more complicated than it may sound )
POP3 - Allows you to directly connect to POP3 mail servers and download messages. Currently the messages are not parsed. The raw string is returned.

Installation instructions:
- Download the attach file.
- Copy Net.xml and Net.jar to the internal libraries folder: C:\Program Files\Anywhere Software\Basic4android\Libraries

If you have previously downloaded the FTP library then you should delete it. The new library is backwards compatible with the FTP library.
The documentation which includes examples is available here: Basic4android - Net

Mails can be a very good and reliable communication channel for Android devices which are likely to not always be connected.
It allows you to take advantage of the mailing technology which is one of the most popular and veteran Internet technology.

V1.20 - New FTP.SendCommand.
Attached Files
File Type: zip Net.zip (176.4 KB, 2522 views)
Reply With Quote
  #2 (permalink)  
Old 08-17-2011, 02:49 PM
ZJP's Avatar
ZJP ZJP is offline
Knows the basics
 
Join Date: Dec 2010
Posts: 145
Default

Yessssssss !!!!!!!
Thx

JP
Reply With Quote
  #3 (permalink)  
Old 08-17-2011, 04:17 PM
Basic4android Expert
 
Join Date: May 2008
Location: Lombardia, Italy
Posts: 821
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Wow Erel! Many thanks for this.

I am in the office now so I cannot test it. I noted that SMTP permits attachments and there is also SSL-support. Wonderful!

As to POP3, when you say
Quote:
Currently the messages are not parsed
are you intending attachments and MIME-handling?
__________________
rgds,
moster67
Reply With Quote
  #4 (permalink)  
Old 08-17-2011, 08:09 PM
Kiffi's Avatar
Knows the basics
 
Join Date: Feb 2011
Location: Leverkusen, Germany
Posts: 238
Default

Thanks a lot, Erel!



Greetings ... Kiffi
__________________
Sorry for my weird english.
Reply With Quote
  #5 (permalink)  
Old 08-18-2011, 01:34 AM
Brad's Avatar
Knows the basics
 
Join Date: Dec 2010
Location: Seattle
Posts: 197
Default

you rock man!
Reply With Quote
  #6 (permalink)  
Old 08-18-2011, 06:34 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 25,913
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Quote:
are you intending attachments and MIME-handling?
I actually tried several solutions before releasing this library, however none of them worked properly. The case with POP3 is that the general problem of supporting all the possible encodings and messages is very complicated.
However using POP3 to receive messages with a known format is much simpler.

If there is interest I can write a module that will help with saving attachments and with the headers.

As I wrote in the first post I think that the POP3 is a very important feature as it is a reliable method to send information to devices.
Reply With Quote
  #7 (permalink)  
Old 09-05-2011, 01:07 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 25,913
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

MailParser code module is now available: http://www.basic4ppc.com/forum/basic...d-devices.html
It allows parsing the raw messages and extracting the headers and attachments.
Reply With Quote
  #8 (permalink)  
Old 09-05-2011, 02:41 PM
dealsmonkey's Avatar
Knows the basics
 
Join Date: Feb 2011
Posts: 144
Default

Quote:
Originally Posted by Erel View Post
MailParser code module is now available: http://www.basic4ppc.com/forum/basic...d-devices.html
It allows parsing the raw messages and extracting the headers and attachments.
Monsieur, you are spoiling us
__________________
http://www.nejola.com
Reply With Quote
  #9 (permalink)  
Old 09-06-2011, 06:30 PM
Senior Member
 
Join Date: Feb 2008
Posts: 467
Default

Good news !
Erel, is it hard to add NNTP protocol ? :-)
__________________
MTK6575 dual-SIM Android 4.0.3 phone & LG P500 (Android v.2.3)
Reply With Quote
  #10 (permalink)  
Old 09-18-2011, 06:01 PM
Senior Member
 
Join Date: Feb 2011
Posts: 489
Default

Just the library I was looking for. SMTP library makes it really easy to send emails, that too with attachments.

One request. Is it possible to add IMAP to this library? IMAP enables the user to download certain folders (or labels) instead of downloading the whole thing. Implementing an attachment download feature might be possible as well. Google has a documentation page on IMAP extensions for Gmail, but none of that makes sense to me.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
LizMa License Manager library for Android Amalkotey Additional libraries, classes and official updates 5 11-15-2012 08:07 AM
Zen of Android Harris Basic4android Updates and Questions 4 02-05-2011 06:24 AM
Door library (Beta) - Special library Erel Official Updates 60 01-13-2011 11:23 AM
Merging Outlook library and Phone library Erel Official Updates 11 09-15-2010 09:22 AM
PhoneticAlgorithms Library (ex-StringComparison Library) moster67 Additional Libraries 10 11-11-2008 07:46 PM


All times are GMT. The time now is 05:39 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0