Welcome Guest, Not a member yet? Register   Sign In
[EMAIL] wordwrap and unwrap being ignored in HTML Mail
#1

(This post was last modified: 02-18-2020, 06:23 AM by pixelschupser.)

Hello CI community,

been using CI for a while now and just ran into my first problem, which can't be solved through the use of Google (sigh).

I am using CI's Email library, a custom config and a custom model for sending HTML mail, which worked fine, until i realized that an <img/> inside the HTML mail template wasn't displayed. The quoted-printable content-type was messing with my long url, so i tried two things: Using {unwrap}, which was ignored and then setting wordwrap to false inside the config, which was also ignored. Every other changes to the config are NOT ignored... i am starting to trip.

The email library is auto loaded inside autoload.php.

My config inside application/config/email.php:

PHP Code:
$config['wordwrap'] = false;
$config['mailtype'] = 'html';
$config['crlf'] = "\r\n";
$config['newline'] = "\r\n"

And in my custom model:

PHP Code:
$this->email->from(EMAIL_ADDRESSSITE_NAME);
$this->email->to(TO);
$this->email->subject(SUBJECT);
$this->email->message(MESSAGE);

if (
$this->email->send()) {
    return true;


Help is appreciated! Thanks in advance!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB