Rss 2.0 via FEED
Ken Hughes... - Sending an SMS Message from Windows Mobile 6
Productivity, Technology and Automating Everything...
    
 

tytnII_101x111_thumbProgrammatically sending an SMS message from your Windows Mobile is fairly simple these days.

You'll need the WM6 SDK. Start a new Visual Studio 'Smart Device Project', add a reference to Microsoft.Windows.PocketOutlook, then use the following code...

using Microsoft.WindowsMobile.PocketOutlook;
..and..
public void Send(string to, string msg)
{
if ((to != string.Empty) && (msg != string.Empty))
{
SmsMessage message = new SmsMessage(to, msg);
try
{
message.Send();
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
}

Job done...

GEO 51.4043197631836:-1.28760504722595
Posted: Monday, October 06, 2008 11:37:41 PM (GMT Daylight Time, UTC+01:00)  #   Comments [0]
TAGS: .NET | C Sharp | Software | Windows Mobile
All comments require the approval of the site owner before being displayed.
OpenID
Please login with either your OpenID above, or your details below.
Name
E-mail
(will show your gravatar icon)
Home page

Comment (Some html is allowed: a@href@title, b, blockquote@cite, em, i, strike, strong, sub, sup, u) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Live Comment Preview
     
 
 
Copyright © 2009 Ken Hughes. All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 2.0 UK: England & Wales License.