Jump to content

UTF8 Mail Problem


mitramcc

Recommended Posts

Hy guys,

 

I am having a problem with characters encryption, hopefully somebody can help me...

 

So:

 

I am trying to send an email with SMTP auth and the chars are arriving to my account like this

i.e.: 100 show like 100€

 

The hole process is like:

 

1- I select from a database the info I need

2- then I urldecode the data because I urlencoded it earlyer

3- then i use my sendEmail function and "shit happens".

 

I have tried to display the email in the browser and if I dont set the header  like this:

"<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />"

the result is exacly the same as in my email.

 

Also I am putting the header in the email like this:

 

 

 


function html($html, $charset = 'utf8', $encoding = 'quoted-printable', $disposition = 'inline'){
.
.
.
$hhtml = 'Content-Type: text/html;'.$this->_crlf."\t".'charset="'.$charset.'"'.$this->_crlf.
	'Content-Transfer-Encoding: '.$encoding.$this->_crlf.
	'Content-Disposition: '.$disposition;
.
.
.
}

 

This is a function from SMTP class.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.