Welcome Guest, Not a member yet? Register   Sign In
Little problem with the email class
#4

[eluser]sophistry[/eluser]
@felyx -

here's the relevant code that is messing with your text email:
Code:
/**
     * Set Body
     *
     * @access    public
     * @param    string
     * @return    void
     */
    function message($body)
    {
        $this->_body = stripslashes(rtrim(str_replace("\r", "", $body)));
    }

given the str_replace() i'm confused why the "slash r" is kept. but, anyway, you could just make a file MY_Email.php and override this message function OR create your own method message_text().

cheers.

EDIT: BTW, i would classify this as a bug if there is not another way to create a text-only email - that would be a serious drawback for an email class... please post here what you do to solve this and if you find another way besides extending the class.


Messages In This Thread
Little problem with the email class - by El Forum - 01-12-2009, 02:28 PM
Little problem with the email class - by El Forum - 01-13-2009, 12:27 AM
Little problem with the email class - by El Forum - 01-13-2009, 08:08 AM
Little problem with the email class - by El Forum - 01-13-2009, 09:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB