Jump to the post that solved this thread.
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 11 Years, 4 Months ago HTML emails BUG
#11
Solved: 11 Years, 4 Months ago
Destroy BABY you have just nailed it man you are awesome, thanks very much

(2013-09-29, 04:33 PM)Destroy666 Wrote: MyBB uses nl2br function to convert new lines to <br />. For example in inc/taks/massmail.php there is:
if(strpos($mass_email['htmlmessage'], '<br />') === false && strpos($mass_email['htmlmessage'], '<br>') === false)
          {
              $mass_email['htmlmessage'] = nl2br($mass_email['htmlmessage']);
          }
I don't really understand the purpose of this code but I guess if you add <br /> somewhere to your mass mail, the new lines aren't converted.

I have replied it with this and it works no more <br/>
if(strpos($mass_email['htmlmessage']) === false && strpos($mass_email['htmlmessage']) === false)
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 7 Guest(s)