MyBB Community Forums

Full Version: HTML emails BUG
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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)
Pages: 1 2