Hi Neal

Not sure how you are sending your email but if you are using an Intent to send it via an email app here is how to do it:

Intent sendIntent = new Intent (Intent.ActionSend);
sendIntent.SetType ("application/zip");
sendIntent.PutExtra (Intent.ExtraStream, Android.Net.Uri.Parse ("file://pathtofile.zip"));
StartActivity (Intent.CreateChooser (sendIntent, "Send Email"));

In the SetType you need to set the mimetype of your attachment (mine being a Zip file).
In the putextra I have used an Android Uri.

Liam

On 12/05/2011 7:01 a.m., Neal wrote:

Hello,

Does anyone have a quick sample of adding an attachment to an e-mail message? I'm using IO.File.ReadAllBytes(MyFilepath) in the Input.ExtraSteam but it's not working.

Any help is appreciated.

Thank you,

Neal


_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to