jmr3460 Posted April 4, 2011 Share Posted April 4, 2011 Hello all, I have a script I have been working on that retrieves my email from my mail server using some of the imap_functions. Everything works fine except for the emails that were sent from my blackberry. I have done some research and it seem to be something to do with the encoding that the blackberry uses. I have found a little bit of code that I was hoping would solve the issue. My goal is to get the body content from email that was produced with my blackberry and put bits of this body into a database. Then I want to do a report from that database once a week. I have developed a script that will retrieve all other message except from my blackberry. Does anyone know how blackberry encodes their body content? jmr3460 Quote Link to comment https://forums.phpfreaks.com/topic/232682-encoded-email-body/ Share on other sites More sharing options...
dcro2 Posted April 4, 2011 Share Posted April 4, 2011 Why don't you just send an email from a blackberry and paste the source here so more people can help? Quote Link to comment https://forums.phpfreaks.com/topic/232682-encoded-email-body/#findComment-1196802 Share on other sites More sharing options...
jmr3460 Posted April 4, 2011 Author Share Posted April 4, 2011 I have the code opening the body now but is is not readable. It looks like this: TmFtZTogaW4NCkxhdGl0dWRlOiAzNS4xNjQxMw0KTG9uZ2l0dWRlOiAtOTAuMTkxNTMNCkFsdGl0 dWRlOiA0Nm0NClRpbWV6b25lOiANCkRhdGU6IEFwciAzLCAyMDExIDc6MDQgUE0NCkRlc2NyaXB0 aW9uOiANCg0KQWRkcmVzczogDQpBZGRyZXNzMjogDQpDaXR5OiANClN0YXRlOiANCkNvdW50cnk6 IA0KUG9zdGFsIENvZGU6IA0KVVJMOiANClBob25lIE51bWJlcjogDQoNClNlbnQgb24gdGhlIFNw cmludK4gTm93IE5ldHdvcmsgZnJvbSBteSBCbGFja0JlcnJ5rg== This is only in the emails that were sent by my blackberry. Quote Link to comment https://forums.phpfreaks.com/topic/232682-encoded-email-body/#findComment-1196918 Share on other sites More sharing options...
dcro2 Posted April 4, 2011 Share Posted April 4, 2011 I meant the source of the whole email, with headers and everything. That seems to be base64 encoded though: Name: in Latitude: --- Longitude: --- Altitude: 46m Timezone: Date: Apr 3, 2011 7:04 PM Description: Address: Address2: City: State: Country: Postal Code: URL: Phone Number: Sent on the Sprint� Now Network from my BlackBerry� Quote Link to comment https://forums.phpfreaks.com/topic/232682-encoded-email-body/#findComment-1196920 Share on other sites More sharing options...
jmr3460 Posted April 4, 2011 Author Share Posted April 4, 2011 Yea thanks I was just going to reply with the same information. Thanks for taking out what you took out. Quote Link to comment https://forums.phpfreaks.com/topic/232682-encoded-email-body/#findComment-1196923 Share on other sites More sharing options...
jmr3460 Posted April 4, 2011 Author Share Posted April 4, 2011 This gets me one step closer to my goal. Where is the solved button now Quote Link to comment https://forums.phpfreaks.com/topic/232682-encoded-email-body/#findComment-1196925 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.