Sunday, February 10, 2019

Do Good , Be Good

Do Good ....Be Good.....That's summary of whole religion and philosphy in simple terms. Go on doing good ...thinking wholesome thoughts ....as you practice this in continous fashion....soon it will become part of who you are....and thus you will be liberated ...... As per swami sivananda ....SERVE....LOVE....GIVE....PURIFY......MEDITATE.....REALIZE.......
UNIVERSAL RELIGIOUS TEACHINGS The essentials of all religions are the same:
Serve, love, give, purify, meditate, realise;
Be good, do good, be kind, be compassionate;
Enquire 'who am I' know the Self and be free.
Love all, serve all, serve the Lord in all.
Speak the truth, be pure, be humble,
Concentrate, meditate, attain Self-realisation.
These are the essentials of all religions.
Customs, conventions, ceremonies are non-essentials.
Do not fight over petty non-essentials.
Be tolerant, be catholic, have a broad outlook.
Respect all Prophets, all Saints, all Messengers.
All Saints speak the same language.
Ref URL : Link

Sunday, February 03, 2019

Hello , World

class Hello
{
  public static void main(String args[])
{
   System.out.printlnn("Hello , World!");
}
}

Tuesday, November 14, 2017

Sending email using javamail and Gmail


import java.util.Properties;

import javax.activation.DataHandler;
import javax.activation.DataSource;
import javax.activation.FileDataSource;
import javax.mail.*;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeBodyPart;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMultipart;

public class Mailer {
public static void send(String to, String subject, String msg) {
//System.out.println(to+subject+msg);
final String user = "gmail id here";
final String pass = "put your password here"

// 1st step) Get the session object
Properties props = new Properties();
props.put("mail.smtp.host", "smtp.gmail.com");
props.put("mail.smtp.port", "587");
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.starttls.enable", "true");

Session session = Session.getDefaultInstance(props, new javax.mail.Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(user, pass);
}
});
// 2nd step)compose message
try {
MimeMessage message = new MimeMessage(session);
message.setFrom(new InternetAddress(user));
message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
message.setSubject(subject);

BodyPart messageBodyPart = new MimeBodyPart();
Multipart multipart = new MimeMultipart();

multipart.addBodyPart(messageBodyPart);
                message.setContent(multipart);
Transport.send(message);
System.out.println("Done");

} catch (MessagingException e) {
throw new RuntimeException(e);
}

}
public static void main(String arg[])
{
String to=arg[0];
String subject=arg[1];
String msg=arg[2];
send(to,subject,msg);
}
}

Wednesday, May 26, 2010

National Portal of india

Thursday, September 25, 2008

My Favourite Songs

Wednesday, September 17, 2008

Links




http://breahoflife.blogspot.com/

http://picasaweb.google.com/er.vishnu