Email sent using intent going to outbox Android -


I am developing an application that sends emails for which I intend to use < Pre> intent Emails = new intent (Intent.ACTION_SEND); EmailI.putExtra (Intent.EXTRA_EMAIL, new string [] {"aaaaa@gmail.com", "bbbbbbb@gmail.com"}); EmailI.putExtra (Intent.EXTRA_SUBJECT, "Email Testing"); EmailI.putExtra (Intent.EXTRA_TEXT, "Dear Sir / Mm Find My Mail"); EmailI.setType ("Message / RFC822"); StartActivity (Intent.createChooser (EmailI, "Choose an Email Client:"));

After running this code the new message is generated in the email account's Outbox, I used to send mail.

I have given the following permissions:

  & lt; Usage-permission Android: name = "android.permission.ACCESS_NETWORK_STATE" /> & Lt; Usage-permission Android: name = "android.permission.READ_PHONE_STATE" /> & Lt; Usage-permission Android: name = "android.permission.INTERNET" />       

I am running the app in the emulator and I have created an account in the emulator which is working fine.

and android.content.intenT.ACTION_SEND

last intent Email = new intent (Android.content.Intent.ACTION_SEND);

Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

c# - Call function from DLL -