You can build build mail and messaging applications with the help of JavaMail API, which gives you access to a platform-independent and protocol-independent framework. You can use the JavaMail API as ...
public class Config { public static final String EMAIL ="ENTER YOUR EMAIL ADDRESS"; public static final String PASSWORD ="ENTER YOUR EMAIL ID PASSWORD"; } ...