Friday, April 29, 2011

Sending mail through G-Mail account (Java)


import javax.mail.*;
import javax.mail.internet.*;
import java.util.*;


public class MailSender {
final String senderEmailID = "kk.boby@gmail.com";
final String senderPassword = "password change it";
final String emailSMTPserver = "smtp.gmail.com";
final String emailServerPort = "465";
String receiverEmailID = null;
String emailSubject = null;
String emailBody = null;


public MailSender(String receiverEmailID, String emailSubject, String emailBody) {
this.receiverEmailID=receiverEmailID;
this.emailSubject=emailSubject;
this.emailBody=emailBody;




Properties props = new Properties();
props.put("mail.smtp.user",senderEmailID);
props.put("mail.smtp.host", emailSMTPserver);
props.put("mail.smtp.port", emailServerPort);
props.put("mail.smtp.starttls.enable", "true");
props.put("mail.smtp.auth", "true");
// props.put("mail.smtp.debug", "true");
props.put("mail.smtp.socketFactory.port", emailServerPort);
props.put("mail.smtp.socketFactory.class",
"javax.net.ssl.SSLSocketFactory");
props.put("mail.smtp.socketFactory.fallback", "false");


SecurityManager security = System.getSecurityManager();


try {
Authenticator auth = new SMTPAuthenticator();
Session session = Session.getInstance(props, auth);
// session.setDebug(true);


MimeMessage msg = new MimeMessage(session);
msg.setText(emailBody);
msg.setSubject(emailSubject);
msg.setFrom(new InternetAddress(senderEmailID));
msg.addRecipient(Message.RecipientType.TO,
new InternetAddress(receiverEmailID));
Transport.send(msg);
} catch (Exception mex) {
mex.printStackTrace();
}




}
private class SMTPAuthenticator extends javax.mail.Authenticator {
public PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(senderEmailID, senderPassword);
}
}
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
MailSender mailSender=new MailSender("receiver@gmail.com","Test Mail from Puretechie","Here goes the body");
}


}
// Set CLASSPATH as activation.jar; mail.jar;

Monday, April 25, 2011

Cloud Computing


Cloud.CM is a cloud computing website for people of all ages and backgrounds. Using leading-edge technology they have created an online virtual desktop that can be accessed anytime and from anywhere. Users can use Cloud.CM to create, store, and share files while simultaneously collaborating with friends, family, and colleagues in a secured and safe environment. They provide additional multimedia and social networking tools that serve to round out the ultimate online experience and offer users an all-in-one solution to their everyday online needs. 

Features Include: File Sharing and Storage, Text and Video Chat, Media Player, Productivity Suite (Used to View, Edit, and Create Word Docs, PPTs, and Excel Docs), Event Planner and Organizer (Groups and Calendar), and Profile Explorer (Social Networking App) 

Cloud.CM may well change the way students collaborate online and interact with peers, TA's, and professors alike. It will do this by providing an online virtual environment that combines many of the online service amenities that already exist as distinct and independent platforms onto a safe and secure online environment. 

Students can work in groups through video conferencing while sharing and updating files in real time. Cloud.CM also gives them the ability to engage each other by using various modes of communication, such as text chat, video chat, message boards, etc, which would then serve to provide a more complete collaboration environment. 

Students will also be able to broadcast conversations between them and a person of their choosing and have other parties engage in that conversation, even members not a part of their cloud, in real time by posting a link of that broadcast to other social networking sites such as "FaceBook", "Twitter", or in the social networking application provided in Cloud.CM. 

To round out the experience, the site also provides a media application to play music and videos, and also provides an avenue for students to remain in touch with professors as the students' progress in their chosen careers. 

Cloud.CM was founded by Sean McCoy, You can read an article about the founder published in Orange County Register.

Blackberry PlayBook Heading to Cellular South

Cellular South has announced that it plans to launch the Blackberry PlayBook tablet on 19 April. For $499, you can get a 16GB PlayBook with WiFi but no 3G from Cellular South.
Blackberry PlayBook is RIM’s try in the tablet market. It is powered by a dual-core 1GHz processor with 1GB of RAM and run Blackberry Tablet OS with support for symmetric multiprocessing. It features a 7-inch 1024×600 capacitive touchscreen, integrated GPS, Bluetooth 2.1, WiFi 802.11b/g/n and built-in stereo speakers and microphones. The PlayBook comes with a 5 Megapixel rear camera and a 3 Megapixel front camera, both support 1080p Full HD video recording and video conferencing.
The Blackberry tablet come with out-of-the-box enterprise support, true multitasking and support for Adobe Flash as well.


Friday, April 8, 2011

My View Points


“Love yourself, for if you don't, how can you expect anybody else to love you?”


“Your luck is how you treat people”


Love all, trust a few, do wrong to none.


“If you adore somebody, let them go. If they return, they were always yours. If they don't, they never were.”


Attitude is a little thing that makes a big difference.


Success builds character, failure reveals it


Don't walk in front of me, I may not follow.
Don't walk behind me, I may not lead.
Walk beside me and be my friend.