<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Microsoft Windows Mobile &#187; Messaging</title>
	<atom:link href="http://www.mstechblogs.com/windowsmobile/tag/messaging/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mstechblogs.com/windowsmobile</link>
	<description></description>
	<lastBuildDate>Fri, 06 Feb 2009 10:58:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Sample C# Application to Send SMS from Windows Mobile 5</title>
		<link>http://www.mstechblogs.com/windowsmobile/sample-application-to-send-sms-from-windows-mobile-5/</link>
		<comments>http://www.mstechblogs.com/windowsmobile/sample-application-to-send-sms-from-windows-mobile-5/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 21:03:09 +0000</pubDate>
		<dc:creator>Uday</dc:creator>
				<category><![CDATA[SMS]]></category>
		<category><![CDATA[Messaging]]></category>
		<category><![CDATA[Windows Mobile 5]]></category>

		<guid isPermaLink="false">http://www.mstechblogs.com/windowsmobile/?p=3</guid>
		<description><![CDATA[<p>Hey Devs,</p>
<p>                 The following piece of code will send SMS from your application.</p>
<p>using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.WindowsMobile.Telephony;
using Microsoft.WindowsMobile.PocketOutlook;</p>
<p>namespace SBSMProj
{
    public partial class SendSMS : Form
    {
        public SendSMS()
        {
            InitializeComponent();
        }</p>
<p>        private void menuItem2_Click(object sender, EventArgs e)
        {
            MessageBox.Show(&#8220;Thanks for playing fair&#8221;);
            Application.Exit();
        }</p>
<p>        private void mnuMessage_Click(object sender, EventArgs e)
        {
            <span style="color:#777"> . . . &#8594; Read More: <a href="http://www.mstechblogs.com/windowsmobile/sample-application-to-send-sms-from-windows-mobile-5/">Sample C# Application to Send SMS from Windows Mobile 5</a></span>]]></description>
			<content:encoded><![CDATA[<p>Hey Devs,</p>
<p>                 The following piece of code will send SMS from your application.</p>
<p>using System;<br />
using System.Linq;<br />
using System.Collections.Generic;<br />
using System.ComponentModel;<br />
using System.Data;<br />
using System.Drawing;<br />
using System.Text;<br />
using System.Windows.Forms;<br />
using Microsoft.WindowsMobile.Telephony;<br />
using Microsoft.WindowsMobile.PocketOutlook;</p>
<p>namespace SBSMProj<br />
{<br />
    public partial class SendSMS : Form<br />
    {<br />
        public SendSMS()<br />
        {<br />
            InitializeComponent();<br />
        }</p>
<p>        private void menuItem2_Click(object sender, EventArgs e)<br />
        {<br />
            MessageBox.Show(&#8220;Thanks for playing fair&#8221;);<br />
            Application.Exit();<br />
        }</p>
<p>        private void mnuMessage_Click(object sender, EventArgs e)<br />
        {<br />
            if (string.IsNullOrEmpty(mobileNumber.Text))<br />
            {<br />
                MessageBox.Show(&#8220;Please Enter Mobile #&#8221;,&#8221;SB&#8221;);<br />
            }<br />
            else if (string.IsNullOrEmpty(smsMessage.Text))<br />
            {<br />
                MessageBox.Show(&#8220;Please Enter Message&#8221;, &#8220;SB&#8221;);<br />
            }<br />
            else<br />
            {<br />
                SmsMessage sms = new SmsMessage(mobileNumber.Text, smsMessage.Text);<br />
                sms.Send();<br />
                MessageBox.Show(&#8220;Message Sent Successfully to &#8221; + mobileNumber.Text);</p>
<p>                mobileNumber.Text = &#8220;&#8221;;<br />
                smsMessage.Text = &#8220;&#8221;;<br />
            }<br />
        }</p>
<p>    }<br />
}</p>
<p>Sample Screen Shots</p>
<p><img class="alignnone size-full wp-image-4" title="mob1" src="http://www.mstechblogs.com/windowsmobile/wp-content/uploads/2009/02/mob1.jpg" alt="mob1" width="333" height="711" /></p>
<p>Click Send Message</p>
<p><img class="alignnone size-full wp-image-5" title="mob2" src="http://www.mstechblogs.com/windowsmobile/wp-content/uploads/2009/02/mob2.jpg" alt="mob2" width="327" height="717" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mstechblogs.com/windowsmobile/sample-application-to-send-sms-from-windows-mobile-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

