반응형
ACTION_SEND 가 아닌 ACTION_SENDTO 를 사용하고, mailto 이용해서 보내자.
String to=""; // 받는 사람 이메일 주소
final Intent intent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts("mailto", to, null));
intent.putExtra(Intent.EXTRA_SUBJECT, "제목입니다.");
intent.putExtra(Intent.EXTRA_TEXT, Html.fromHtml("<p>하하하</p>"));
startActivity(Intent.createChooser(intent, "메일 발송"));