重複の可能性:
メールの内容に新しい行を追加するには?
次の形式でメールを送信したい:
name: name
email: email
address: address
しかし、メールを送信すると、次のように受信されます。
NameEmailAddress
これらの間に新しい行を挿入するにはどうすればよいですか?
私のコードは
private void sendEMail(String message) {
AppSheredPref pref = new AppSheredPref(this);
String supplierEmailId = pref.getSupplierEmailId();
String loggedIn = pref.getLoggedInEmailId();
//String to = supplierEmailId;
Intent email = new Intent(Intent.ACTION_SEND);
email.putExtra(Intent.EXTRA_EMAIL, new String[]{loggedIn,supplierEmailId});
//email.putExtra(Intent.EXTRA_CC, new String[]{ to});
//email.putExtra(Intent.EXTRA_BCC, new String[]{to});
email.putExtra(Intent.EXTRA_SUBJECT, "App Finance");
email.putExtra(Intent.EXTRA_TEXT, message);
//need this to prompts email client only
email.setType("message/rfc822");
startActivity(Intent.createChooser(email, "Choose an Email client :"));
}