Page 1 of 1

cannot read email charset have problem

Posted: Thu Jun 19, 2008 4:00 pm
by saeed12345
Script URL:
Version of script:0.94.1
Hosting company:almajd.cc
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

hi to all

when i try send forgot ticket id the mail cannot read
because i cannot see the charset good it is like »¿Ø³Ù„ام,
i use arabic LANGUAGE

Posted: Sat Jun 21, 2008 10:56 am
by Klemen
Not sure for Arabic language, but you can try adding this code after every line that starts with

Code: Select all

@mail(
inside submit_ticket.php, reply_ticket.php and admin_reply_ticket.php:

Code: Select all

$headers.="Content-type: text/plain; charset=iso-8859-1";
Change iso-8859-1 to the charset you use for Arabic fonts.

Posted: Sun Jun 22, 2008 7:15 pm
by saeed12345
"adding this code after every line that starts with
Code:

Code: Select all

@mail(
Do you mean Search for all files in the directory
or only "submit_ticket.php, reply_ticket.php and admin_reply_ticket.php"
and adding this code after every line that starts with it

Code: Select all

$headers.="Content-type: text/plain; charset=UTF-8";
for example :
in the submit_ticket.php

Code: Select all

/* Send e-mail */
$headers="From: $hesk_settings[noreply_mail]\n";
$headers.="Reply-to: $hesk_settings[noreply_mail]\n";
@mail($email,$hesklang['ticket_received'],$message,$headers);
$headers.="Content-type: text/plain; charset=UTF-8";
Thanks for help me

Posted: Tue Jun 24, 2008 6:08 am
by saeed12345
is work in script mail.php

Code: Select all

<?php

$to="me@almajd.cc";


$fp=fopen('emails/forgot_ticket_id.txt','r');
$message=fread($fp,filesize('emails/forgot_ticket_id.txt'));
$header="Content-type: text/plain; charset=windows-1256";
fclose($fp);

// send email
$sentmail = mail($to,$subject,$message,$header);

// if your email succesfully sent
if($sentmail){
echo "Email Has Been Sent .";
}
else {
echo "Cannot Send Email ";
}



?>
in the root folder

code page troubles

Posted: Wed Jul 02, 2008 12:53 pm
by a007
hi guys

you discussed very intersting theme 4 me
please,explain once again, how i can change code page in delivered email.

I trying to make it as you, but - un4tunatley

I changed CP from KOI8-R it iso-8859-1 in two places



/* Send e-mail */
$headers="From: $hesk_settings[noreply_mail]\n";
$headers.="Reply-to: $hesk_settings[noreply_mail]\n";
@mail($email,$hesklang['ticket_received'],$message,$headers);
$headers.="Content-type: text/plain; charset= iso-8859-1";


/* Send e-mail to staff */
$email=implode(',',$admins);
$headers="From: $hesk_settings[noreply_mail]\n";
$headers.="Reply-to: $hesk_settings[noreply_mail]\n";
@mail($email,$hesklang['new_ticket_submitted'],$message,$headers);
$headers.="Content-type: text/plain; charset= iso-8859-1";
} // End if

Posted: Thu Jul 03, 2008 5:26 pm
by Klemen
$headers.="Content-type: text/plain; charset= iso-8859-1";

should be ABOVE (before)

@mail($email,$hesklang['ticket_received'],$message,$headers);

both times.

!!!!!!!!

Posted: Mon Jul 07, 2008 2:21 pm
by a007
Thank you, so much, Klemen!
It's work!!!!


header must be before @mail-function!!!!

:D :D