shanil — 2011-05-26T01:05:20-04:00 — #1
I have send a mail with Subject line as
#12622] Payment Method
But in the source of the message the line is like below
It is encoded in Base 64.How can i decode it back to the original subject line in English using php ? I have tried with the php base64_decode($subject) but it does not decode it to the original subject (BILLING #PHY-945-49853: [Ticket #12622] Payment Method)
I'm also attaching a sample email message in this mail.
X-MimeOLE: Produced By Kayako Fusion v4.01.204
X-Mailer: Kayako Fusion v4.01.204
This is a message in MIME Format.
If you see this, your mail reader does not support this format.
If anyone knows please help me....
rishikeshjha — 2011-05-26T04:42:26-04:00 — #2
it seems that the subject is blank due to some reason that is why you are getting this..
starlion — 2011-05-26T06:28:26-04:00 — #3
This occurs usually because one of your parameters contains a non-ASCII character in it, causing the headers to be UTF-8 Encoded.
Base64 Decoding your data shows the following:
Subject: [SALES #BBN-935-37917]: [Ticket #12622] Payment
Metho <-- Hmmm....
From: SAVVYEHOSTING SALE
seems like your subject line is too long for the mail daemon, so it's mangling the result. But I could be wrong there.
anthonysterling — 2011-05-26T06:33:57-04:00 — #4
I've seen that format of characters before, but for the life of me cannot remember where. =34 =EF etc...
It's encoded, but not base64...
starlion — 2011-05-26T06:42:52-04:00 — #5
Er... yes, it is base64.
Q = Quoted Printable
B = Base64
It's worth pointing out that there's nothing WRONG with having the string encoded - it'll still come out on the other end correctly.
anthonysterling — 2011-05-26T06:57:01-04:00 — #6
Ahh, I see. Learning is awesome.
So, am I imagining seeing something like =C34 in emails before?
starlion — 2011-05-26T07:04:22-04:00 — #7
In the actual email itself? Shouldnt have gotten that far (Your local mail daemon (or is it the email program itself... not sure.) should have decoded the data back into readable form)....