\r\n\r\n 字符串转为纯文本
我面临使用表单输入的问题,我需要将其作为文本电子邮件发送,然后放入数据库。
当我将其作为文本电子邮件发送时,换行符在纯文本电子邮件中显示为 \r\n\r\n ,但在存储在数据库中时不会像这样显示。
我正在使用 PHP/MySQL - 阻止 \r\n\r\n 字符出现在发送的电子邮件中的修复方法是什么?
谢谢你, 亚历克斯
I am facing an issue of using form input that I need to send as a text email and then put into the database.
When I send it as a text email, the newline characters show up as \r\n\r\n in the plain text email, but do not show up like that when stored in the DB.
I am using PHP/MySQL - what would be the fix to stop the \r\n\r\n characters from showing up in the email that gets sent out?
Thank you,
Alex
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

以 text/html 形式发送电子邮件并使用
标签
send the email as text/html and use
tags