gpt4 book ai didi

android - 如何在邮件正文中插入新行

转载 作者:行者123 更新时间:2023-11-29 21:52:08 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
how to add new line to email contents?

我想发送以下格式的电子邮件:

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 :"));

}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com