Forum Moderators: coopster & phranque

Message Too Old, No Replies

formmail subject problem

how to allow a '?' in the subject line

         

VinceI

2:52 am on Jun 26, 2003 (gmt 0)

10+ Year Member




I have noticed that if you put a '?' character in your subject when you use the formmail.pl script, it comes through as the subject in my email client as '=3F'.

For example, 'why?' becomes 'why=3F'.

How do I fix that?

I tried doing a basic =~ s/=3F/?/ for the $Config{'subject'} variable, but it didn't work.

sugarkane

2:53 pm on Jun 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sorry Vincel, I couldn't replicate this behaviour, so I can only guess that it's maybe an issue with your email client?

Is it only the subject line that's effected?

ShawnR

12:16 pm on Jun 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd agree with sugarkane. '3F' is the ascii code for '?', so something is escaping the '?'. If different email clients show the same problem, then uyou go about debugging as follows:

If the offender was the form submitting the subject, then your =~ s/=3F/?/ should have fixed it. But you could check... Have a look at the html page that is calling the script, and, if there is any javascript pre-processing the form, check what the javascript does.

If you are using the formmail.pl, then I doubt that is the problem, either. But again, you could check... modify the success form (e.g. the sub return_html) to print $Config{'subject'}.

moltar

3:15 am on Jun 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



IMHO this problem has something to do with user's encoding settings (menu - View -> Encoding Language).

Sometimes when I get a form that was filled out in Russian, my whole subject consists of bunch of stuff like that, even though the body of the comment is totaly fine.