How to send an email from my application using email?

How to send an email from my application using the mail application?

I have one scenario, for example, send an email to a specific mail id ( info@jeltech.com). In my application, clicking on the link, he should call by email, and then transfer the identifier of the mail above to the "To" field (after logging in).

Is there any solution for this problem?

Regards,
Jeyavel N

+3
source share
2 answers

You can use the following code to trigger an action ACTION_SENDTOin a new action

Intent intent = new Intent(Intent.ACTION_SENDTO, 
                           Uri.fromParts("mailto", "test@test.com", null));
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(intent);
+4

html html .

100%, Android, , .

.

,

0

Source: https://habr.com/ru/post/1724013/


All Articles