Guest User

Untitled

a guest
Dec 12th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. public void NoticationEmail() {
  2.  
  3. SenderEmail = "xxx@gmail.com";
  4. Subject = "Announcement";
  5. Message = "Test Email";
  6.  
  7. Intent email = new Intent(Intent.ACTION_SEND);
  8. email.putExtra(Intent.EXTRA_EMAIL, new String[]{SenderEmail});
  9. email.putExtra(Intent.EXTRA_SUBJECT, Subject);
  10. email.putExtra(Intent.EXTRA_TEXT, Message);
  11. email.setType("message/rfc822");
  12. startActivity(Intent.createChooser(email, "Choose Email client :"));
  13. Intent pindah = new Intent(verification.this, AdminActivity.class);
  14. startActivity(pindah);
  15. }
Add Comment
Please, Sign In to add comment