public static void main(String[] args) {
new enviamail().enterEventDispatcher();
}
public enviamail() {
Address a;
Store store = Session.getDefaultInstance().getStore();
Folder[] folders = store.list(Folder.SENT);
Folder sentfolder = folders[0];
Message m = new Message(sentfolder);
try {
a = new Address ("xxxx@mpginfo.com", "xxxx@mail.mpginfo.com");
Address[] addresses = {a};
m.addRecipients(Message.RecipientType.TO, addresses);
m.setContent("Contenido del email");
m.setSubject("GPS Tracking Test");
Transport.send(m);
}
catch (Exception me) {
System.err.println(me.getMessage());
}
}
}
but a nullpointerexception i found. Somebody know why?
Somebody know Debug blackberry applications wich Eclipse? I found a error: source file no found.