Guest User

Untitled

a guest
Dec 20th, 2017
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. @Override
  2. protected String doInBackground(Void... params) {
  3.  
  4. try {
  5. GMailSender sender = new GMailSender("xxxx@gmail.com", "xxxxpassword");
  6. sender.sendMail("This is a testing mail",
  7. "This is Body of testing mail","oskr.developer1024@gmail.com",
  8. "oskr.developer1024@gmail.com") ;
  9.  
  10. } catch (Exception e) {
  11. Log.e("error", e.getMessage(), e);
  12. return "Email No Enviado";
  13. }
  14. return "Email Enviado";
  15. }
  16.  
  17. @Override
  18. protected void onPostExecute(String result) {
  19. Log.e("LongOperation",result+"");
  20. }
  21. @Override
  22. protected void onPreExecute() {
  23.  
  24. }
  25. @Override
  26. protected void onProgressUpdate(Void... values) {
  27. }
Add Comment
Please, Sign In to add comment