Cant Send Email

I am using the recipe found at the Xamarin Documentation, but its not working it will not pass the start activity

var email = new Intent (Android.Content.Intent.ActionSend);
email.PutExtra (Android.Content.Intent.ExtraEmail,
new string[]{"[email protected]", "[email protected]"} );

                email.PutExtra (Android.Content.Intent.ExtraCc,
                                new string[]{"[email protected]"} );

                email.PutExtra (Android.Content.Intent.ExtraSubject, "Hello Email");

                email.PutExtra (Android.Content.Intent.ExtraText, 
                                "Hello from Mono for Android");

email.SetType ("message/rfc822");

what could I do?


  • StevaSteva RSMember ✭✭✭

    Emulators can't send emails. So if you run that code on emulator you will probably break the app. Since the code looks fine I'm gonna guess that you are trying to run that code on emulator.

  • Yeah, that was it lol, thanks mate.

Sign In or Register to comment.