Android: How to confirm that email has been sent successfully

后端 未结 1 365
鱼传尺愫
鱼传尺愫 2021-01-01 01:56

Here is my code that is able to sent email successfully

package com.send.email;    

import android.app.Activity;
import android.content.Intent;
import andr         


        
相关标签:
1条回答
  • 2021-01-01 02:50

    You cannot do this using : android.content.Intent.ACTION_SEND. Just try to send a mail using the mailing app to a email ID that doesnot exist. You will see that the app does not notify you of the failed delivery. Using android.content.Intent.ACTION_SEND, you are actually passing an intent to the same app to do the email delivery task for you. So you will never know if your mail delivery has failed.

    The work around. You need to implement the email delivery a 3rd party Library mail.jar or some thing similar. But the thing is you need to have senders' mailID and PASSWORD both to set this up. May be you can have a dummy email account with which you can send the mail.

    This can help.

    0 讨论(0)
提交回复
热议问题