The SimpleInvoices forum has moved to Google Plus - this forum is now read-only
Plain text version of recurring email contains HTML
  • JohnGJohnG May 2012

    The emails generated by the cron job contain the same content for both the HTL and plain text parts. This has been confirmed by examining the raw message, not just the rendered version. i.e.
    Hi Test,
    <br />
    <br />
    Attached is your PDF copy of Invoice XXXX
    <br />
    <br />
    Cheers
    <br />
    <br />
    My Company

    The <br /> tags should be replace by carriage returns for the plain text version.

    I've tried to remedy this myself using $this->AltBody = preg_replace('!<br />!', "\n", $this->AltBody); in class.phpmailer.php but that has no effect. Which file should I be looking in for this?

    Alternatively, is there a way I can set the outbound email to plain text only? There seems to be no setting for this.

Categories

Tagged