Thursday, 15 August 2013

How to send email using Java and Gmail smtp server?

Send verification link to email or send an email for verification. Sending an email from your java code is quite simple. If you need to send multiple emails or email for multiple users (cc/bcc) the best and simplest way is to use the already available java mail api for the purpose. The javax.mail jar contains many classes that deals with various aspects of emailing, the MIME helps you configure properties of the email content, the BodyPart enables content to be send in body, the Message covers over all content and etc. Now, before starting you should know about SMTP. An SMTP stands for Simple Mail Transfer Protocol that establishes and configure the mail server, for our example we will be using easily available Gmail SMTP server. Before...
Read more »

Tuesday, 2 July 2013

Mavenize your BlackBerry project

How to create and build your BlackBerry project through Maven? I was recently faced with a situation where it was required to mavenize my BlackBerry project. The purpose was to get automated builds through Hudson. The problem: There isn't any Maven plugin for BlackBerry! The solution: Get it done manually. So here's what I did: Since there wasn't any plugin I realized that I needed to manually create a maven structure and then use command line to build it. Once I had created the structure and completed the initial steps I was faced with an even bigger issue. The localization I used in my project won't compile and package through maven. BlackBerry application creates .crb files against its localization files. Somehow these files...
Read more »

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Best Web Hosting