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

  • SEARCH
  • Home
  • 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 3238690
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:53:00+00:00 2026-05-17T17:53:00+00:00

I am using PEAR Mail to send emails, and I found that if the

  • 0

I am using PEAR Mail to send emails, and I found that if the “From:” field is something like From: Dragoş <email@example.com>, PEAR returns an error:

Validation failed for: Dragoş <email@example.com>

But, if I remove the ş, PEAR returns true and sends email.

I tried to search on Google and StackOverflow for valid characters, but seems I have no luck here.
Does anyone know what are the valid characters for the display name in From field?

Also, is there any way to “encode” these chars to be allowed on this field? I use PHP.

Thank you!
Nuno

  • 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-05-17T17:53:00+00:00Added an answer on May 17, 2026 at 5:53 pm

    In MIME you have to use only ASCII encoded characters.

    In order to pass non-ASCII chars, you have to use Word encoding.

    Copied from the linked article:

    For example,

    Subject:
    =?iso-8859-1?Q?=A1Hola,_se=F1or!?=

    is interpreted as “Subject: ¡Hola,
    señor!”.

    The same can be applied to the “name” part (not the email) of the “From” and “To” MIME fields.

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

Sidebar

Related Questions

I am sending emails using PHP Pear class, when I see mails in gmail,
I'm using the PEAR OAuth Class to access the LinkedIn developer API and I've
I'm getting ready to launch a site - the first one that I coded
EDIT: Solution...email is a function within Validate which is a class so you need
I'm using XAMPP on my WINDOWS/XP local machine. Here are my installation steps: Running
I have a web server that is running PHP 5.3.6 non thread safe (VC9),
Apparently my last question was too vague even though it was pretty straightforward. I'm
I added PHPUnit to a project via git submodule add per the instructions in
I am a total dummy to programming so pls understand if my question might
I am receiving the following error when attempting to inject my dao into a

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.