php mail utf8

Asked by:
BrianDiehm / 11 Points
2013-02-27 12:22 am EST
Send Email From A Page
How do I set the e-mail output mode in PHP to be UTF-8? In perl, this would be:

binmode (MAIL, "utf8");

What's the PHP equivalent

To ask this user for more information, please first login.

To submit an answer, please login.

Best answer chosen by User


12,039 Points
2013-02-27 10:23 am EST
Hello BrianDiehm,

Thank you for your question. Unfortunately, we do not have an article that covers this. After doing an internet search, it looks like this can be set in the Header of the message by using this line of code:

$headers1 .= "Content-type: text/html; charset=UTF-8\r\n";

If you have any further questions, feel free to post them below, or contact live Tech Support.

They are available 24/7 via:
Phone: 877-595-4482 x2
Chat (there is a link on the top right).

Thank you,


To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.