sending mail with attachment

  • Thread starter Thread starter tony
  • Start date Start date
T

tony

Hi,


How can I send mail with attachment in Net Compact ? ( net compact 2 , sp2)


Thanking in advance.
 
Assuming your device is Windows Mobile 5.0 or later you can use the
Microsoft.WindowsMobile.PocketOutlook.EmailMessage class. e.g.

EmailMessage em = new EmailMessage();
em.Subject = "subject";
em.To.Add(new Recipient("Name", "(e-mail address removed)"));
em.Attachments.Add(new Attachment("filename"));
em.Send();

Peter

--
Peter Foot
Microsoft Device Application Development MVP
peterfoot.net | appamundi.com | inthehand.com
APPA Mundi Ltd - software solutions for a mobile world
In The Hand Ltd - .NET Components for Mobility
 
I knew I forgot somthing.

It's win.ce net 4.2


Peter Foot said:
Assuming your device is Windows Mobile 5.0 or later you can use the
Microsoft.WindowsMobile.PocketOutlook.EmailMessage class. e.g.

EmailMessage em = new EmailMessage();
em.Subject = "subject";
em.To.Add(new Recipient("Name", "(e-mail address removed)"));
em.Attachments.Add(new Attachment("filename"));
em.Send();

Peter

--
Peter Foot
Microsoft Device Application Development MVP
peterfoot.net | appamundi.com | inthehand.com
APPA Mundi Ltd - software solutions for a mobile world
In The Hand Ltd - .NET Components for Mobility
 
Back
Top