Last post Feb 13, 2008 04:21 AM by S.p
None
0 Points
9 Posts
Jan 31, 2008 05:06 AM|S.p|LINK
Hi
I have developed an application which runs in windows smartphone. It reads the incoming SMS and send mail.
Can anyone help me in this.I dont know how to send mail using smartphone mobile application.
Thanks
S.p
Star
7759 Points
651 Posts
Feb 01, 2008 03:35 AM|Guang-Ming Bian - MSFT|LINK
Hi S.p,
Windows Mobile 5.0 SDK or above provide emailmessage class , which can send email. Sample code:
EmailMessage message = new EmailMessage();
message.To.Add(new Recipient("xxx@microsoft.com"));
message.Subject = "Test";
message.BodyText = "Hello World";
message.Attachments.Add(new Attachment(@"\My Documents\text.txt"));
using (OutlookSession session = new OutlookSession()) { session.EmailAccounts[0].Send(message); }
For more information: http://msdn.microsoft.com/en-us/library/ms881975.aspx
Best regards, Guang-Ming Bian - MSFT
Feb 01, 2008 04:15 AM|S.p|LINK
Hi Bian
Thank you so much.
Im using the same code what u have given. The problem im facing is that Im using active sync to connect PC and smartphone (Motorola).
With active sync im not able to browse internet.
What are all the settings i need to configure to browse internet using active sync.
Feb 01, 2008 04:30 AM|Guang-Ming Bian - MSFT|LINK
Hi S.p
Is your smartphone connected to PC, If connected, Go to the Start->Settings->Connections tab -> Connections to set proxy.
For more information: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=135428&SiteID=1
Feb 01, 2008 05:18 AM|S.p|LINK
Thanks.
I did smartphone master reset and then configured all the settings. Now im able to browse internet.
But I couldnt send mail using active sync. Actually I couldnt synchronise my mobile device with Microsoft exchange server.
What should i do?
Feb 05, 2008 02:43 AM|Guang-Ming Bian - MSFT|LINK
Please read the following FAQ:
http://www.pocketpcfaq.com/faqs/activesync/tshoot-as4x.htm
Feb 13, 2008 04:21 AM|S.p|LINK
Thank you very much.
With your help I have completed the application to an extent.
Now my application reads new SMS and form mail. But the mail was staying in outlook outbox in the smartphone.
I need to give send/Receive option manually and then its sending the mail to my mail box
What would be the problem?
Sp
None
0 Points
9 Posts
Send Mail in smartphone application
Jan 31, 2008 05:06 AM|S.p|LINK
Hi
I have developed an application which runs in windows smartphone. It reads the incoming SMS and send mail.
Can anyone help me in this.I dont know how to send mail using smartphone mobile application.
Thanks
S.p
Star
7759 Points
651 Posts
Re: Send Mail in smartphone application
Feb 01, 2008 03:35 AM|Guang-Ming Bian - MSFT|LINK
Hi S.p,
Windows Mobile 5.0 SDK or above provide emailmessage class , which can send email.
Sample code:
EmailMessage message = new EmailMessage();
message.To.Add(new Recipient("xxx@microsoft.com"));
message.Subject = "Test";
message.BodyText = "Hello World";
message.Attachments.Add(new Attachment(@"\My Documents\text.txt"));
using (OutlookSession session = new OutlookSession())
{
session.EmailAccounts[0].Send(message);
}
For more information:
http://msdn.microsoft.com/en-us/library/ms881975.aspx
Best regards,
Guang-Ming Bian - MSFT
None
0 Points
9 Posts
Re: Send Mail in smartphone application
Feb 01, 2008 04:15 AM|S.p|LINK
Hi Bian
Thank you so much.
Im using the same code what u have given. The problem im facing is that Im using active sync to connect PC and smartphone (Motorola).
With active sync im not able to browse internet.
What are all the settings i need to configure to browse internet using active sync.
Thanks
S.p
Star
7759 Points
651 Posts
Re: Send Mail in smartphone application
Feb 01, 2008 04:30 AM|Guang-Ming Bian - MSFT|LINK
Hi S.p
Is your smartphone connected to PC, If connected, Go to the Start->Settings->Connections tab -> Connections to set proxy.
For more information:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=135428&SiteID=1
Best regards,
Guang-Ming Bian - MSFT
None
0 Points
9 Posts
Re: Send Mail in smartphone application
Feb 01, 2008 05:18 AM|S.p|LINK
Hi Bian
Thanks.
I did smartphone master reset and then configured all the settings. Now im able to browse internet.
But I couldnt send mail using active sync. Actually I couldnt synchronise my mobile device with Microsoft exchange server.
What should i do?
Thanks
S.p
Star
7759 Points
651 Posts
Re: Send Mail in smartphone application
Feb 05, 2008 02:43 AM|Guang-Ming Bian - MSFT|LINK
Hi S.p,
Please read the following FAQ:
http://www.pocketpcfaq.com/faqs/activesync/tshoot-as4x.htm
Best regards,
Guang-Ming Bian - MSFT
None
0 Points
9 Posts
Re: Send Mail in smartphone application
Feb 13, 2008 04:21 AM|S.p|LINK
Hi Bian
Thank you very much.
With your help I have completed the application to an extent.
Now my application reads new SMS and form mail. But the mail was staying in outlook outbox in the smartphone.
I need to give send/Receive option manually and then its sending the mail to my mail box
What would be the problem?
Thanks
Sp