Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9177135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:15:36+00:00 2026-06-17T17:15:36+00:00

I have problem with non english characters with this e-mail script. If I set

  • 0

I have problem with non english characters with this e-mail script. If I set the script to send e-mail to my gmail account, I have no problem. However, if I set the script to send email to my domain account and if i open the email with windows live mail or with microsoft outlook then the e-mail is not readable. I must to go to encoding menu, and then select the utf-8, and then i can read the email.

If I open the mail on iMac mail client, i have no problem.

My customer see this as big problem and want me to solve it. Anyone can help?

Here is the code:

<?php
// send the form to the specify email

// CONFIG VARS
$subject = "mysite.com | contact form";
$to = "myaccount@somemail.com";
$from = 'another@somemail.com';


//data
$msg = "Name: "  .$_POST['namesup']    ."<br>\n";
$msg .= "Email: "  .$_POST['emailsup']    ."<br>\n";
$msg .= "Phone: "  .$_POST['phonesup']    ."<br>\n";
$msg .= "Message: "  .$_POST['yourtextsup']    ."<br>\n";

//Headers
$headers  = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=UTF-8\r\n";
$headers .= "From: <".$from. ">" ;


//send
mail($to, $subject, $msg, $headers);
?>

Any help will be deeply appreciated.
Zoran

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T17:15:37+00:00Added an answer on June 17, 2026 at 5:15 pm

    Checkout this code it will work for me,

    <?php
    
    $subject = "mysite.com | contact form";
    $to = "myaccount@somemail.com";
    $from = 'another@somemail.com';
    
     $msg = '<html>
                <head>
                </head>
                    <body>
                    <p>
                                   Name: ".$_POST['namesup']."<br>
                                   Email: ".$_POST['emailsup']."<br>
                                   Phone: ".$_POST['phonesup']."<br>
                                   Message: ".$_POST['yourtextsup']."<br>
                        </p>
                    </body>
            </html>';
    
        $headers = 'MIME-Version: 1.0' . "\r\n" . 'Content-type: text/html; charset=UTF-8' . "\r\n";
        $headers .= "X-Mailer: PHP \r\n";
        $headers .= "From: <".$from. ">" ;
    
        mail($to,$subject,$msg,$headers);
    ?>
    

    This line $headers = 'MIME-Version: 1.0' . "\r\n" . 'Content-type: text/html; charset=UTF-8' . "\r\n"; is resolved your issue of like Arabic language or others.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have noticed a problem with non-english (polish) characters using MySQL. query select 'abcde'='ąbćdę'
I have a problem displaying non- ASCII characters in Matplotlib, these characters are rendered
I have symlinks to certain directories because the directories' names have non English characters
I am facing a problem while trying to read non english characters in android
I have a javascript case conversion problem which I cannot solve due to non-English
I am doing homework but I have problem with non-RestFul routes. My spec is:
Hugs seems to have a problem with several non-enbraced !! in a partial application.
I have a problem to test my non activity-class which need the context of
I have the following code: The actual problem is the non-quoted code. I want
I have problem with my query on C, I’m using the oci8 driver. This

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.