This is my first library, and also the first git upload.
Library is used for background sending mail from Gmail account.
Usage if very simple:
...and you will need permissions
This is optional
Last release
BackgroundMailLibrary 1.5
Change log:
Here is link on Github
https://github.com/kristijandraca/BackgroundMailLibrary
Follow me
https://plus.google.com/u/0/+KristijanDrača
Library is used for background sending mail from Gmail account.
Usage if very simple:
Code:
BackgroundMail bm = new BackgroundMail(context);
bm.setGmailUserName("yourgmail@gmail.com");
bm.setGmailPassword("yourgmailpassword");
bm.setMailTo("receiver@gmail.com");
bm.setFormSubject("Subject");
bm.setFormBody("Body");
bm.send();
...and you will need permissions
Code:
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
This is optional
Code:
bm.setSendingMessage("Loading...");
bm.setSendingMessageSuccess("Your message was sent successfully.");
bm.setProcessVisibility(false);
bm.setAttachment(Environment.getExternalStorageDirectory().getPath()+File.pathSeparator+"somefile.txt");
Last release
BackgroundMailLibrary 1.5
Change log:
Version 1.5
*fix #4
Version 1.4
*Added attachments support
Version 1.3
*Added password encryption for better security
Version 1.2
*Added process visibility feature
Version 1.1
*Added demo
*Bug fix
Version 1.0
*First upload
Here is link on Github
https://github.com/kristijandraca/BackgroundMailLibrary
Follow me
https://plus.google.com/u/0/+KristijanDrača
Last edited: