如何在电子邮件中格式化字符串,Outlook将打印换行符? [英] How do I format a String in an email so Outlook will print the line breaks?

查看:223
本文介绍了如何在电子邮件中格式化字符串,Outlook将打印换行符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试用Java发送电子邮件,但是当我在Outlook中阅读电子邮件的正文时,它已经摆脱了我所有的故事。我正在放在线的末端,但有什么特别的,我需要做的另外吗?接收器总是使用Outlook。

I'm trying to send an email in Java but when I read the body of the email in Outlook, it's gotten rid of all my linebreaks. I'm putting \n at the ends of the lines but is there something special I need to do other than that? The receivers are always going to be using Outlook.

我在microsoft.com上发现一个页面,表示Outlook中有一个删除换行符功能,所以这意味着没有办法解决这个问题

I found a page on microsoft.com that says there's a 'Remove line breaks' "feature" in Outlook so does this mean there's no solution to get around that other than un-checking that setting?

谢谢

推荐答案

你需要使用 \r\\\
作为解决方案。

You need to use \r\n as a solution.

这篇关于如何在电子邮件中格式化字符串,Outlook将打印换行符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆