我正在尝试从我的应用程序发送一封电子邮件[NO INTENT],但它没有发送。也许有人可以告诉我LOGCAT中没有错误有什么问题。
final Button send = (Button) this.findViewById(R.id.btnSend);
send.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
try
{
javamail sender = new javamail("MY EMAIL", "My Password" );
sender.sendMail("HI",
"I'm trying Androin Email :)",
"Person I sent to",
"djkgotsod@gmail.com");
Log.d("send", "Owk");
} catch (Exception e) {
Log.e("SendMail", e.getMessage(), e);
}
}
});