tmail.exe -service

  • Thread starter Thread starter wheeldo
  • Start date Start date
W

wheeldo

Hi all,

I've been trying for some time now to discover what the -service
parameter options are for tmail.exe, but can't find any documentation
on it!

I've found that

-service "SMS"

does sms text messages.

-service "MMS"

does MMS text messages.

However, I can't find the one for E-mail !! This means that whenever I
call Pocket Outlook again, it defaults to using the previous setting
(i.e. SMS or MMS).

I've tried all the obvious: mail, mailto, outlook, outlook E-mail (in
every possible upper/ower case combination), inbox etc...).

Thanks!
 
The name you pass is the account name in the system. e.g. ActiveSync or
MyPopEmailAccount etc. Outlook E-Mail is a display name only, the account
name is still "ActiveSync"

Peter
 
Many thanks Peter,

I realised this last night, but was unable to post my response (google
groups issue I think)

Here's what I was going to post... Essentially just querying whether
it's a safe assumption that a PDA will always have an "ActiveSync"
account.


------

Ok... I think I know what's going on here - hopefully somebody can
confirm my thoughts!

Unlike SMS and MMS service, the E-mail service allows you to have
multiple e-mail accounts. e.g. You might have an AOL and a Demon
account. You can setup as many of these as you want and can call them
whatever you like.

Therefore when you call the tmail.exe program, the command line
parameter for the relevant service needs to look like (as an example).

tmail.exe -service "AOL" -to "(e-mail address removed)" -subject "A little test"
-body "Hello World"

(btw: As a side-note I also noticed that as soon as your command-line
args are longer than 500 characters it can't handle it.)

After spending some time looking at the Windows Mobile 5 SDK, in which
you can enumerate around the email accounts (EmailAccounts collection
on the Microsoft.WindowsMobile.PocketOutlook.OutlookSession object)...
I've found that the account name to use if you simply want ActiveSync
style E-mail usage - rather than E-mail over GPRS say, is
"ActiveSync".. hence the following: -

tmail.exe -service "ActiveSync" -to "(e-mail address removed)" -subject "A little
test" -body "Hello World"

Can anybody confirm whether it's safe to assume this is always called
"ActiveSync" ??

I presume there's some way to iterate around EmailAccounts on
PocketPC2003 devices also... but for the time being I don't need this.
 
Back
Top