What I want is that, instead of entering the email and password ( "[email protected]", "xxxxpassword" ), directly in the code,
use the email already registered by the user on the phone , I hope your help thanks.
@Override
protected String doInBackground(Void... params) {
try {
GMailSender sender = new GMailSender("[email protected]",
"xxxxpassword");
sender.sendMail("This is a testing mail",
"This is Body of testing
mail","[email protected]",
"[email protected]") ;
} catch (Exception e) {
Log.e("error", e.getMessage(), e);
return "Email No Enviado";
}
return "Email Enviado";
}
@Override
protected void onPostExecute(String result) {
Log.e("LongOperation",result+"");
}
@Override
protected void onPreExecute() {
}
@Override
protected void onProgressUpdate(Void... values) {
}
}