Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-5443

iOS: EmailDialog not sending attachments

    Details

      Description

      Problem

      While sending the image files as a attachment using EmailDialog the receive image is empty.

      Reproducible Steps

      1. Execute the project that was attached
      2. Install the application to some iOS device
      3. Send an email to you
      4. Check your inbox - the image received is empty

      Sample Code

      // this sets the background color of the master UIView (when there are no windows/tab groups on it)
      Titanium.UI.setBackgroundColor('#000');
       
      var win1 = Titanium.UI.createWindow({  
          title:'Tab 1',
          backgroundColor:'#fff'
      });
       
      win1.open();
      var emailDialog = Titanium.UI.createEmailDialog();
       
      emailDialog.subject = 'Take a look at this great app I found!';
       
      emailDialog.toRecipients = [];
       
      emailDialog.messageBody = "u";
       
      var f = Ti.Filesystem.getFile('off.png');
       
       
      if(f.exists())
       
      {
       
      emailDialog.addAttachment(f);
       
      }
       
      else
       
      {
       
      emailDialog.messageBody = "test";
       
      }
       
      emailDialog.open();
      

      Associated HelpDesk Ticket

      http://appc.me/c/APP-353882

        Attachments

          Activity

            People

            • Assignee:
              srahim Sabil Rahim
              Reporter:
              kpomaski Karol Pomaski
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-4609
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration