05-07-2010, 11:37 AM
[eluser]whobutsb[/eluser]
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:
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?
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:
Code:
$this->CI->email->from('[email protected]', 'Me');
$this->CI->email->reply_to('[email protected]', 'Me');
$this->CI->email->to('[email protected]');
$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?