dsrbb20862 2012-08-02 06:04
浏览 27
已采纳

使用mail(); 添加一个不存在的额外回复

issue is after I use the mail function it adds a return break that is not there. code is as follow:

    $lesujet = "testing ...";
    $letexts = "a bunch of text       
    there is a return break here
    another return break as you see";

    mail("myemail@gmail.com",$lesujet,$letexts,$headers);

this is what the email look like : a bunch of text

there is a return break here

another return break as you see

  • 写回答

2条回答 默认 最新

  • drzbc6003 2012-08-02 07:40
    关注

    Try using the function str_ireplace to remove the line break characters:

    $letexts = str_ireplace(array("","
    "),array('',''),$letexts);
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 2024-五一综合模拟赛
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭