Advertisement
Guest User

Untitled

a guest
Feb 28th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public void onLocationChanged(Location loc)
  2. {
  3. // Call the GmailSender as per the example
  4. try {
  5. GMailSender sender = new GMailSender("username@gmail.com", "password");
  6. sender.sendMail("This is Subject",
  7. "This is Body",
  8. "user@gmail.com",
  9. "user@yahoo.com");
  10. } catch (Exception e) {
  11. Log.e("SendMail", e.getMessage(), e);
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement