Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to send email with an attachment using Windows Phone 7 API?

My WP7 application requirement is to send the email with an attachment and use device default SMTP settings.

I have tried EmailComposeTask class but it doesn't have any member for attachment.

The other idea, i am thinking is to upload the file on server and then send the email from that server.

What you think if there is no way to send the email with an attachment using WP7 API?

like image 850
Cruiser KID Avatar asked Oct 25 '10 01:10

Cruiser KID


2 Answers

Your observation is correct, at this point in time EmailComposeTask doesn't support attachments and this is the only facility to send email programatically from the device at the moment.

As you note, you can communicate with a server which can perform this task on behalf of your app.

like image 168
Mick N Avatar answered Oct 24 '22 03:10

Mick N


I found a wp7 and wp8 library that does it: http://www.windowsphonegeek.com/marketplace/components/livemailmessage

like image 40
Robert Avatar answered Oct 24 '22 03:10

Robert