Email BodyText missing

  • Thread starter Thread starter Mpoy
  • Start date Start date
M

Mpoy

Hey guys, I'm now using Peter's InTheHand API. But I'm having a problem
with it.
I used this code:

OutlookSession OS = new OutlookSession();

string EmailSubj = OS.EmailAccounts[0].SentItems[0].Subject;
string EmailMessage = OS.EmailAccounts[0].SentItems[0].BodyText;

But then, EmailMessage string does not contain the email message, it
only gives "" string. Although the EmailSubj is correctly given. Is
there something wrong with my code or there's a bug in the API?

Kindly help me with this.

Thanks!
 
Is the message an incoming message that was received on an account set to
receive only message headers or partial message bodies and the full message
has not been retrieved?
If this is not the case what device are you running on? The way message
bodies are stored varies between WM2003 and WM5.0. Also was the message an
incoming message or one composed on the device itself? If the latter are you
reading it from the Drafts folder or did you move it to another folder
without sending and receiving? (MessagingApplication.Synchronize)

Peter
 
I'm using WM5.0.

It's created from the device, a supposedly outgoing message. I'm
reading it from outbox.

I created an email message in the messaging application of pocket
outlook. Then after I have sent the message it will automatically go to
outbox. So my application used InTheHand to retrieve that message that
was just created in the outbox, my application read the subject but it
can't retrieve the message.


Is the message an incoming message that was received on an account set to
receive only message headers or partial message bodies and the full message
has not been retrieved?
If this is not the case what device are you running on? The way message
bodies are stored varies between WM2003 and WM5.0. Also was the message an
incoming message or one composed on the device itself? If the latter are you
reading it from the Drafts folder or did you move it to another folder
without sending and receiving? (MessagingApplication.Synchronize)

Peter

--
Peter Foot
Device Application Development MVP
www.peterfoot.net | www.inthehand.com

Mpoy said:
Hey guys, I'm now using Peter's InTheHand API. But I'm having a problem
with it.
I used this code:

OutlookSession OS = new OutlookSession();

string EmailSubj = OS.EmailAccounts[0].SentItems[0].Subject;
string EmailMessage = OS.EmailAccounts[0].SentItems[0].BodyText;

But then, EmailMessage string does not contain the email message, it
only gives "" string. Although the EmailSubj is correctly given. Is
there something wrong with my code or there's a bug in the API?

Kindly help me with this.

Thanks!
 
Back
Top