WordPress.org

Ready to get started?Download WordPress

Forums

eShop
{CART} in out bound emails missing line breaks (4 posts)

  1. igald
    Member
    Posted 3 years ago #

    HI!

    Seems that the "\n" is ignored in the outbound emails. This needs to be replaced by a "<br \>".
    This is in cart-functions.php in function eshop_rtn_order_details($checkid).
    For example, from:
    $cart.=__('Transaction id:','eshop').' '.$transid."\n";
    to:
    $cart.=__('Transaction id:','eshop').' '.$transid."<br \>";

    Thanks!

  2. igald
    Member
    Posted 3 years ago #

    Just to add - this is needed when the Content-type is text/html

  3. elfin
    Moderator
    Plugin Author

    Posted 3 years ago #

    I only code for text emails, if you want to change it to html you are on your own.

  4. igald
    Member
    Posted 3 years ago #

    Thanks.
    I do appreciate that and your hard work.
    It can be a nice feature to have the option from the admin to set text or html emails. all it requires are the line break changes as well as adding these lines to the cart-functions.php:
    $headers .= "MIME-Version: 1.0\r\n";
    $headers .= "Content-type: text/html; charset=utf-8\r\n";

    Thanks!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags