Welcome Guest, Not a member yet? Register   Sign In
£ pound sign / symbol in email
#1

[eluser]nevsie[/eluser]
Hi, and stupid question time...

I am sending a simple plain text email using the mail class and having real trouble with the £ (pound sign)...

Code:
$this->email->clear(TRUE);
$config['charset'] = 'iso-8859-1';
$this->email->from('[email protected]', 'xxx');
$this->email->to($userdata['email']);
$this->email->subject('xxxxxxxxxxxxxxxx');
$this->email->message($this->load->view('xxx/xxx', $userdata, TRUE));
            
$this->email->send();

I have had a few different attempts and encodings, but so far no joy at all... Someone please tell me the obvious thing i am missing!

thanks, N
#2

[eluser]n0xie[/eluser]
Did you try setting the config before sending the message:
Code:
$this->email->initialize($config);
#3

[eluser]danmontgomery[/eluser]
Have you tried using £ instead?
#4

[eluser]nevsie[/eluser]
thanks for the fresh set of eyes, i had stupidly taken the config set out when trying to problem solve with other methods. This resolved the problem.
As for the HTML version, this will not work as it is a plain text email.
cheers, N




Theme © iAndrew 2016 - Forum software by © MyBB