Jump to content

[SOLVED] Funny characters appear in email received <Â> or < Â Â >


moh_sulaiman

Recommended Posts

no actualy i have an email script when email recieved that contain these charctors they are basically  &nbs; which are shown as  which are  because when you view them in envoirment where they are not supported.what should i do with them so that i dont have this  

You need to make sure your encodings are in agreement. How is the data stored? Retrieved? Sent? Received? Are you sending encoding or character set information with the e-mail? Do you see the same if you send it to yourself?

when i check it in db it is ok i mean a white space  but when the reciever checks his mail it is there also when i generated  sql dump file these charactors are there like :

To:</font>      [email protected]<br>\r\n

lots of iso-8859-1 it is system which provide support thourgh email

 

sample :

$headers = "From: ".ADMIN_NAME." < ".ADMIN_EMAIL." > \n";

$headers .= "MIME-Version: 1.0\r\n";

$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

$agentemail = $_POST['iu-'.TABLE_CRM_AGENT.'-email-1-3'];

$password = $_POST['iu-'.TABLE_CRM_AGENT.'-apassword-1-5'];

$fp=fopen("mail_format/agent_welcome_mail.txt","r");

$fcontent=fread($fp,filesize("mail_format/agent_welcome_mail.txt"));

fclose($fp);

$message=str_replace("{AGNAME}",$_POST['iu-'.TABLE_CRM_AGENT.'-ausername-1-5'],$fcontent);

 

$message=str_replace("{AGPASS}",$password,$message);

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.