Jump to content

How to get rid of BAD HEADER...


Germaris

Recommended Posts

Greetings!

 

From a Flash based form, users of my site can send emails.

This is the PHP Script I use to:

 

<?php
$sender = stripslashes($_POST["sender" ]);
$sender_mail = stripslashes($_POST["sender_mail" ]);
$to = stripslashes($_POST["to" ]);
$email = stripslashes($_POST["email" ]);
$subject = stripslashes($_POST ["subject" ]);
$body = stripslashes($_POST ["body" ]); 
$footer="\n\n---------------------------\nMail sent by: $s_name <$s_mail>\n";
$message = $body.$footer;
mail("\"".$to."\" <".$email.">", $subject, $message, "From: \"".$sender."\" <".$sender_mail.">");
?>

 

Alas, the mail messages don't accurately display the accented characters (à è é etc...) when using French language.

 

The message header show:

 

X-Amavis-Alert: BAD HEADER, Non-encoded 8-bit data (char E9 hex): From:

"G\351rard Mariscalchi...

 

Any idea to solve this problem?

Many thanks in advance for your help!

 

Gerry

Link to comment
Share on other sites

I don't think it's a "problem".

 

For example, I have a french first name which is "Gérard".

I must write it as is. That's the way it is...

 

Why should I comply with anglo-saxon rules in order to not generate bad headers?

 

I think there's a problem with characters encoding...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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