So this is weird.
I'm getting a 451 error on an email that's being generated, except that what causes it is the plain text portion of the subject line :s
This subject line gets through fine:
$this->email->subject('New task in "'.$data['property_name'].'"');
This one causes the 451 error:
$this->email->subject('A user has completed their task in "'.$data['property_name'].'"');
For reference, Error 451 is for bare LF's (http://cr.yp.to/docs/smtplf.html). It's normally caused by not declaring the line ending rules in the settings, or using single quotes, i.e. '/r/n/' instead of "/r/n". My settings are correct and emails work fine.
Something notable in the the debugger, is that the longer line appears as so:
Subject: =?utf-8?Q?A_user_has_completed_their_task_in_"TASKNAME
?=
=?utf-8?Q?"?=
Whereas the working one appears like:
Subject: =?utf-8?Q?New_task_in_"TASKNAME"?=
Is this a CI bug?
Where are you getting the 451 error from? I'm seeing 451 being reported as a local error in processing.
The Email class breaks down the subject string if it's longer than 76 characters:
You can see it in action:
Which outputs
I've seen other's have problems with the way email configs are set. Do you have
set?