Ok. solved it.
I was using the Unity SDK, and the documentation suggests:
String emailMime="EmailMIME.PLAIN_TEXT_MIME_TYPE";
It shold be, without the quotes:
String emailMIME = EmailMIME.PLAIN_TEXT_MIME_TYPE
since EmailMIME is an enum.
Anyways, you guys should change the documentation