I’m writing an emailing class for a surveying application i’m coding. Whenever I add the subject variable in to $this->CI->email->subject(); method it obfuscates the subject.
Here is my code:
$this->CI->email->from('me@somewhere.com', 'Me');
$this->CI->email->reply_to('me@somewhere.com', 'Me');
$this->CI->email->to('someone@somewhere.com');
$this->CI->email->subject($distribution->emailSubject);
$this->CI->email->message($distribution->emailBody);
$this->CI->email->send();
The variable $distribution->emailSubject should look like “How was your meal? Let us know and earn 20 points!”. But in my subject line of my email client it looks like: “=?utf-8?Q?_How_was_your_meal=3f__Let_us_know_and_earn_20_Points_on_Fare_ X-Sender:”
Has anyone run into a situation like this?