|
Posted by Yoshitha on September 5, 2006, 3:08 pm
Please log in for more thread options
Hi all
using pocketoutlook i'm sending mails in smartphone devices.
here is my code
using Microsoft.WindowsMobile.PocketOutlook;
OutlookSession outsess;
outsess = new OutlookSession();
EmailAccountCollection coll =
outsess.EmailAccounts;
foreach (EmailAccount ee in coll)
{
MessageBox.Show(ee.Name);
}
EmailMessage message = new EmailMessage();
Recipient recipe = new
Recipient("tulasikumar@nannacomputers.com");
message.To.Add(recipe);
message.Subject = "HI";
message.BodyText = "This is tulasi";
//Attachment attach=new Attachment();
EmailAccount ema = outsess.EmailAccounts[1];
ema.Send(message);
when i click on send mail button in my application which is
running in smartphone 2005 then the mail is residing in
outbox of the outlook in smartphone2005 and when i goto
outbox folder and click on send/receive then only the mail
is sending other wise it is staying in outbox only, but
without clicking on send/recive option in outbox i want to
send the mail to specified address when i click send button
in my application can any one tell me how to do this one.
its very urgent for me
Is the above code i've writen is right to send the mails if not please let
me know.
Thanx in advance
Tulasi.
|