可能重复:
如何在电子邮件内容中添加新行?
我想按以下格式发送电子邮件:
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 :"));
}