换行未显示在电子邮件中(PHP)

Zab*_*abs 0 php email newline

我在我的应用程序发送的电子邮件中使用了以下字符串:

$msg = "{$name} has submitted an email for review.\n\n You can preview the email here";
Run Code Online (Sandbox Code Playgroud)

\n没有出现在电子邮件中 ​​- 任何想法为什么?

我正在使用PHPMailer(旧的我知道..)

Man*_*eUK 5

如果您发送电子邮件作为HTML,那么你需要更换\n<br>