Sending E-mail and SMS

  • Thread starter Thread starter yuen
  • Start date Start date
Y

yuen

How can I send e-mail and SMS in PocketPC 2002?
Can someone help me?
Either C# or VB.Net Code is welcome.
 
For Email:
The simplest method is to call the pmail/tmail executable with command line
arguments for the address, subject and body of the mail - see here for
details http://www.nsbasic.com/ce/info/nsbce/technotes/TN17.htm
Alternatively you can P/Invoke the CEMAPI apis, or use a third party
component to use SMTP directly (such as IP*Works)

For SMS:
For Phone Edition devices (such as the XDA etc) you can P/Invoke the built
in API - see this article for details:-
http://smartdevices.microsoftdev.com/Learn/Articles/564.aspx

If you intend to use a separate phone handset you will need to establish a
serial connection with the device (via cable, ir or bluetooth) and set the
appropriate gsm codes to the phone to send sms - I'm not aware of any CF
samples but you should be able to find the GSM specs on google.

Peter
 
THX
Peter Foot said:
For Email:
The simplest method is to call the pmail/tmail executable with command line
arguments for the address, subject and body of the mail - see here for
details http://www.nsbasic.com/ce/info/nsbce/technotes/TN17.htm
Alternatively you can P/Invoke the CEMAPI apis, or use a third party
component to use SMTP directly (such as IP*Works)

For SMS:
For Phone Edition devices (such as the XDA etc) you can P/Invoke the built
in API - see this article for details:-
http://smartdevices.microsoftdev.com/Learn/Articles/564.aspx

If you intend to use a separate phone handset you will need to establish a
serial connection with the device (via cable, ir or bluetooth) and set the
appropriate gsm codes to the phone to send sms - I'm not aware of any CF
samples but you should be able to find the GSM specs on google.

Peter

--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com | www.opennetcf.org
 
Back
Top