Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Outbox message not being sent

Tags:

android

In my app I want to keep track on sms sending. In case of sms does not sent due to network failure(No signal).

I managed to put sms in outbox :

    private void putoutbox(String addr,String msg) {
        // TODO Auto-generated method stub
         ContentValues values = new ContentValues();
      values.put("address", addr);
           values.put("body", msg);
           getContentResolver().insert(Uri.parse("content://sms/Outbox"), values);
    }

sms is being shown in default message folder with status sending but sms never sent I also tried

content://sms/failed

and it also does not send sms. Please tell me what I am missing.

like image 518
dheeraj Avatar asked Jan 31 '12 07:01

dheeraj


People also ask

Why is my email in my outbox but not being sent?

When you compose and send an email, Outlook updates the email’s status and places the email in your outbox. If you open that email while it is being sent, then outlook may change the status of that email but leave it in your outbox. The simplest fix to try when a mail has been left in your outbox unsent is to try to resend the email manually.

How to fix the Send option in Microsoft Outlook not working?

Check the send options in your Outlook. Make sure the send options in your Microsoft Outlook are correct by following the steps given below: Open Outlook. Click the “Tools” tab. Select the “Mail Setup” tab or the “Send” tab depending on your version of Microsoft Outlook. Ensure that the “Send Immediately” option is checked.

What do I do if my email is stuck in outbox?

If your email is stuck in the Outbox, then you can open it, and move it to the Drafts instead. You can check the email’s attachment, configuration settings, and sender’s ID, and try to resend the email via Outlook. Where do Saved Outlook Messages Go?

Why are my messages not sending in Outlook 2016?

When this problem occurs, the message remains in your Outbox folder until you manually initiate a Send/Receive operation (for example, press F9 or select send or receive). This problem can occur if the Send immediately when connected option is not enabled, as shown in the following figure from Outlook 2016.


1 Answers

Thank you all for helping me

as st0le gives a very useful link here one must have to provide all seven attribute unfortunately i can not show the code for that,but it will work if you restart your phone

like image 145
dheeraj Avatar answered Oct 04 '22 19:10

dheeraj